Solvedexpo exp build:android fails

Running exp build:android errors fails. I am experiencing this on both Windows and OS X.

This solution is working as a temporary work around. Expo version is 56.0.0.

$ exp build:android
[11:01:40] Checking if current build exists...

[11:01:41] No currently active or previous builds for this project.
[11:01:42] Publishing to channel 'default'...
[11:01:44] Building iOS bundle
[11:01:45] Error: connect ECONNREFUSED 127.0.0.1:19001
[11:01:45] Set EXPO_DEBUG=true in your env to view the stack trace.

Environment

Environment:
  OS: Windows 10
  Node: 8.11.1
  Yarn: 1.9.4
  npm: 5.6.0
  Watchman: Not Found
  Xcode: N/A
  Android Studio: Not Found

Packages: (wanted => installed)
  expo: ^29.0.0 => 29.0.0
  react: 16.3.1 => 16.3.1
  react-native: https://github.com/expo/react-native/archive/sdk-29.0.0.tar.gz => 0.55.4

Diagnostics report:
  https://exp-xde-diagnostics.s3.amazonaws.com/skempin-e8172ba2-6e87-419c-b5dd-7eb273b98cbf.tar.gz

Steps to Reproduce

  1. Run exp build:android from a fresh terminal.

Expected Behavior

The APK should be built.

Actual Behavior

The build fails.

A temporary solution is to run exp start first and then run exp:build:android.

capture

55 Answers

βœ”οΈAccepted Answer

This works.

  • exp start
  • Cancel ctrl c
  • then do exp build:android.

Other Answers:

This is work for me.

  1. expo start
  2. Open another tab
  3. expo build:android

This works.

  • exp start
  • Cancel ctrl c
  • then do exp build:android.

I don't know why but I do the same way with expo-cli and it's working!

No need to hassle. Just delete .expo folder and expo build:android or expo build:ios, works like a charm.

Issue still occurs

Related Issues:

746
expo Error: fsevents unavailable (this watcher can only be used on Darwin)
Possible solution: I had installed watchman via npm install -g watchman but apparently this installs...
306
expo exp build:android fails
This works exp start Cancel ctrl c then do exp build:android. Running exp build:android errors fails...
122
expo Unable to resolve "react-native-gesture-handler" Expo SDK 34.0.1
expo install react-native-gesture-handler worked for me too... Updating Expo from 33.0.0 to 34.0.1 ...
118
expo [SDK32] undefined is not an object (evaluating '_expo2.default.KeepAwake')
Looks like this was related to react-native-scripts for me I fixed it by following the instructions ...
72
expo SDK 39++ bug fix release
Hi everyone! I am both pleased and relieved to be able to tell you that we have now rolled out the f...
72
expo Uncaught error: packager is not running at localhost: 19001
I found that this error message could arise for a very simple reason Description after giving the co...
67
expo Cannot get GCM token for device
Make sure you're logged Expo I improved when I logged in again exp login Environment ExpoKit running...
66
expo TypeError: Network request failed when fetching a file:// uri
TL;DR: Replace fetch().blob() with: Let me guide you through some code to understand the problem bet...
53
expo Unable to resolve "./Amplitude" from "node_modules\expo\build\Expo.js"
Hey guys have you tried clearing metro bundler cache? Please try expo start -c πŸ˜‰ ...
52
expo Expo 31 Jest transform error repro in tabs project template
Thanks @artyorsh for sharing unfortunately your repo might be a bit confusing for someone that doesn...
52
expo Expo cant find StoreReview
If anyone else runs into this issue after upgrading the Expo SDK run expo r -c to clear the expo cac...
51
expo Expo permissions build error [SDK39]
Had the same error after upgrading to expo sdk 41 Below is the only fixes. I just updated SDK versio...
51
expo Location: "Location provider is unavailable. Make sure that location services are enabled."
The issue happened when I chose these : Location.getCurrentPositionAsync({accuracy:Location.Accuracy...
48
expo 2FA / MFA
Hi everyone! Thanks to lots of hard work from @fxfactorial we have preliminary support for Apple 2FA...
44
expo Network request failed (device and emulator)
@viniciuscastelano @ljtijhuis @ide After going to sleep and upon waking up I figured out what the an...
42
expo SDK36: fontFamily "material-community" is not a system font and has not been loaded through Font.loadAsync
please search for an issue before opening a ticket the same: #6476 Thanks πŸ› Bug Report After upgrad...
41
expo The development server returned response error code: 500
I had the same issue here so what solved my problem was running npm start first and then in another ...
37
expo Cannot get permissions using PermissionsAndroid on standalone app
For those who need it here is my edit to MainActivity.java to get things to work There may be a bett...
35
expo Error : 'ScrollView' has no propType for native prop 'RCTScrollView.onScrollAnimationEnd' of native type ' BOOL'
The following solved the issue in my case: Update expo in the package.json to 21.0.2 Update react-na...
33
expo After Upgrade to SDK 33: undefined is not an object (evaluating '_expo Localization.Localization.locale')
I've created PR which may fix it However it will be nice if you go to settings > general > language ...
33
expo [expo-splash-screen] No native splash screen registered for given view controller.Call 'SplashScreen.show' for given view controller first
hey everyone -- we are working on figuring out the correct solution for this and will release new co...
28
expo Possible Unhandled Promise Rejection (id:0) expoKeepAwake ^7.0.0
I have the same error with SDK36: And expo diagnostics: And package.json relevant part: Could we reo...
26
expo Font.loadAsync not loading third-party fonts and also vector icons
please try running watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && rm -f...
26
expo [SDK 38] getExpoPushTokenAsync() throws error in android production
Just managed to track down the solution for my situation Prior to setting up push notifications ...
25
expo [Unhandled promise rejection: Error: Location provider is unavailable. Make sure that location services are enabled.]
Hello I was reading all this feed because a I was facing the same issue However As experiment ...
24
expo Error starting tunnel: Error: Error: failed to start tunnel
Expo and react-devtools conflict!!! If you are using react-devtools you must uninstall it: npm unins...
22
expo "React Native version mismatch" (continued)
I had the same issue starting a clean app following the instruction from react-native official page ...
21
expo KeyboardAvoidingView does not work on standalone app [Android].
We seem to have found the issue causing the failure Here is a repo reproducing the failure ...
21
expo [unimodules][android][notifications] Event listener can miss emit() calls made soon after app launch
Hi @cruzach Works when app is in background but not when the app is killed πŸ› Bug Report Summary of ...
19
expo Google sign in Error
Even though it looks like an issue with Expo I've found a temporary solution: Solution Keep using Ex...
18
expo Expo SDK 23 doesn't support KeyboardAvoidingView/KeyboardAwareScrollView - TextInput hidden when keyboard visible
add something like this to your app.json if you want this component to work with default props: that...
18
expo Plugin with id β€˜maven’ not found.
I stumbled here via google search and just wanted to let you guys know that the 'maven' plugin was d...
18
expo Erro on building - React/UIView+React.h file not found
I downgraded CocoaPods to 1.4 and its works perfectly! Hi! I ejected my app created with CRNA i sele...
17
expo Back button closes standalone Android apps after being closed due to memory pressure in the background
Don't know if this is related but I'm having the same issue when I import firebase (no in an Standal...
17
expo expo yarn workspace not working on windows
I've noticed the package works on windows but you have to remove the script from the app's package.j...
16
expo Expo client crashes with error t.preventAutoHide
thanks for your patience πŸ› Bug Report Summary of Issue Cannot open Expo Client either from a projec...
14
expo undefined is not a function (near '...(0 , _reactNavigation.TabNavigator)...')
Got the same error Fix = change import { TabNavigator } from 'react-navigation' to import { createBo...
13
expo Sound and Android ExoPlayer bugs
@brentvatne @sjchmiela please reopen issue Environment Environment: OS: macOS High Sierra 10.13.4 No...
13
expo Android build fails on createReleaseExpoManifest
Hey @dondragon2 - we will add a clearer error message here but unfortunately πŸ› Bug Report A brand n...
11
expo AuthSession returns dismiss result even before the browser is opened
I've been debugging this and I think I tracked down the issue here The problem In Android and iOS < ...
11
expo SDK37 standalone app: "Couldn't get GCM token on device"
I have reproduced the error and I think I have also found a workaround Could you please ...
11
expo SDK 37 Android Keyboard master issue
in sdk38 (not yet released! coming soon!) we've added a new property to app configuration so you can...
10
expo [expo-apple-authentication] AppleAuthenticationButton not showing up
I think all you need to do is to set width and height to the button :D Try to set style ...
9
expo ImagePicker.launchCameraAsync displays the Camera under Modal on iOS 14.5
Currently looking into a fix at first glance this seems due to the modalPresentationStyle we are set...
9
expo [Camera] camera.takePictureAsync() responds only after second call
I found the issue to still exist in SDK32 Thank you everyone for sharing your workarounds Unfortunat...
8
expo onMessage/postMessage WebView Communication not work on Expo 32 but work on Expo 31 or below
Since nobody mentioned yet: Another workaround is to use useWebKit={true} option ...
8
expo [expo.google.logInAsync] Wrapper code doesn't take standalone clientIds when it should
Tried setting up Google auth in Client such as: import React from 'react'; import { ScrollView Style...
8
expo [upstream] No SVG shown when using react-native-svg >v9.9.2
Look at this issue Try using the exact version that Expo supports change your package.json to react-...
7
expo Expo v31 Android release build would not load JS bundle ( iOS build works on both debug and release configs)
I'm having the same issue after upgrading to EXPO 31 Seems like this is a know issue without any exa...
7
expo Android standalone app crashing on Android X
I'm having the same issue on Xiaomi Note 7 Here is what I'm getting at Firebase Crash analytics The ...