expo-cli icon indicating copy to clipboard operation
expo-cli copied to clipboard

Expo build:android error

Open jimyu2006 opened this issue 7 years ago • 8 comments

Please note that Expo CLI issues opened in the core Expo repository will be closed.

With virtual device open, then I run expo build:android generate issues as below:

C:\exec\react-native\test2>expo build:android Checking if there is a build in progress...

Request failed with status code 400 Error: Request failed with status code 400 at createError (C:\Dev\nvm\v10.15.1\node_modules\expo-cli\node_modules\xdl\node_modules\axios\lib\core\createError.js:16:15) at settle (C:\Dev\nvm\v10.15.1\node_modules\expo-cli\node_modules\xdl\node_modules\axios\lib\core\settle.js:17:12) at IncomingMessage.handleStreamEnd (C:\Dev\nvm\v10.15.1\node_modules\expo-cli\node_modules\xdl\node_modules\axios\lib\adapters\http.js:236:11) at IncomingMessage.emit (events.js:194:15) at endReadableNT (_stream_readable.js:1103:12) at process._tickCallback (internal/process/next_tick.js:63:19)

Same 400 issue when trying to click the "Run on android device/emulator" button in the expo browser window: INFO12:44 Downloading latest version of Expo ERROR 12:44 Couldn't start project on Android: Error running adb: Request failed with status code 400

Any ideas/help?

jimyu2006 avatar May 07 '19 01:05 jimyu2006

Hi @jimyu2006,

Could you follow the issue template? Definitely need information like your environment, Expo CLI version, and everything else listed in the template.

Also- moving this to the Expo CLI repo

Thanks! Charlie

cruzach avatar May 07 '19 13:05 cruzach

+1

jolocity avatar Jun 03 '19 20:06 jolocity

+1

BridgeEast avatar Jun 26 '19 04:06 BridgeEast

Same issue here, just i made update at Expo, version 3.2.2. Any solution?

Updated Solution: downgrade to version 3.1.2

Adr1ann avatar Oct 04 '19 07:10 Adr1ann

Solution: downgrade to version 3.1.2

After downgrading and executing the command "expo build:android" in VS Code Terminal I had the following error:

Publishing to channel 'default'...
Building iOS bundle
connect ECONNREFUSED 127.0.0.1:19001

I don't know why it is building iOS instead of Android and what is this new issue.

Anyway, I then tried in the Windows cmd.exe and there it works like a charm.

EDIT : However expo publish fails with error connect ECONNREFUSED 127.0.0.1:19001 on both cmd.exe and VS Code Terminal

glautrou avatar Oct 04 '19 14:10 glautrou

Same problem, and same error as @glautrou :/

EDIT : actually you need to have your project running for it to work on 3.1.2. Works fine after that magical npm start

EtoileFilante avatar Oct 04 '19 17:10 EtoileFilante

Can either of you run expo publish with EXPO_DEBUG=true? I wasn't able to repro this and would like to find the root cause

This can usually happen when publishing without ever having run expo start, also it's a good idea to run rm -rf .expo to clear your local state

(The reason I ask for a way for me to repro is we can probably do a better job with this and intercept the error message to provide better feedback)

cruzach avatar Oct 11 '19 17:10 cruzach

closing this in favor of https://github.com/expo/expo-cli/issues/1186 since the econrefused error was reported more succinctly there, and it seems the original issue is resolved in a newer version of expo-cli

cruzach avatar Nov 08 '19 16:11 cruzach