Every time I build both the iOS and Android apps, they crash. They seem to be working fine in the simulator, inside the expo client with or without --minify --dev
The Android logcat only says this:
11-14 17:21:25.961 com.yayzy 17596 17688 E ReactNativeJS invalid host
11-14 17:21:25.965 com.yayzy 17596 17688 I ReactNativeJS Running application "main" with appParams: {"initialProps":{"exp":{"initialUri":"https://expo.io:443/@cristiandan/yayzy","manifest":{"id":"@cristiandan/yayzy","privacy":"public","bundleUrl":"https://d1wp6m56sqw74a.cloudfront.net/%40cristiandan%2Fyayzy%2F1.0.6%2Ffd82437657c2e65ed4bfd727b133ee2c-35.0.0-android.js","revisionId":"1.0.6-r.HJl6tV-ssS","releaseChannel":"default","locales":{},"slug":"yayzy","name":"Yayzy","icon":"./assets/images/icon.png","loadedFromCache":true,"splash":{"resizeMode":"contain","backgroundColor":"#ffffff","image":"./assets/images/splash.png","imageUrl":"https://d1wp6m56sqw74a.cloudfront.net/~assets/f25773ff58950d22004e3735680e802c"},"orientation":"portrait","publishedTime":"2019-11-14T16:44:53.051Z","iconUrl":"https://d1wp6m56sqw74a.cloudfront.net/~assets/254c487a7b838cbe62fa2c4ccc7c4c14","isVerified":true,"version":"1.0.6","bundledAssets":["asset_3a2ba31570920eeb9b1d217cabe58315.ttf","asset_744ce60078c17d86006dd0edabcd59a7.ttf","asset_140c53a7643ea949007aa9a282153849.ttf","asset_6beba7e6834963f7f171d3bdd075c915.ttf","asset_b06871f281fee6b241d60582ae9369b9.ttf","asset_2e562d4ebf15395f00bc738738f79291.ttf","asset_872545dde71de3842234bf6afe80c4cb.ttf","asset_c6aef942e3668158ec29d4adcb2e768f.ttf","asset_e20945d7c929279ef7a6f1db184a4470.ttf","asset_b2e0fc821c6886fb3940f85a3320003e.ttf","asset_5a293a273bee8d740a045d9922b9a9ae.ttf","asset_a37b0c01c0baf1888ca812cc0508f6e2.ttf","asset_8e7f807ef943bff1f6d3c2c6e0f3769e.ttf","asset_d2285965fe34b05465047401b8595dd0.ttf","asset_5cdf883b18a5651a29a4d1ef276d2457.ttf","asset_7d40544b395c5949f4646f5e150fe020.png","asset_cdd04e13d4ec83ff0cd13ec8dabdc341.png","asset_a132ecc4ba5c1517ff83c0fb321bc7fc.png","asset_0ea69b5077e7c4696db85dbcba75b0e1.png","asset_f5b790e2ac193b3d41015edb3551f9b8.png","asset_6165c9d7a2e729ba57b23dd93add5366.png","asset_004c2bbb035d8d06bb830efc4673c886.png","asset_2327736b3ea09c41abfb69be1221f430.png","asset_51671417ef20e0bbc32f0a2bc6edfa95.png","asset_a7b9dc9de5f8f1fb1afbef917619a5ac.png","asset_4bdd6aad790c6c8370a06876ec7d31e1.png","asset_4b9cf0cc747e3c1abc541befa05b1e37.png","asset_0b6fc88dd4b9f484fd35454e854ee027.png","asset_ea2db77f232a3a0a8fd05daf95808cdc.png","asset_49a79d66bdea2debf1832bf4d7aca127.ttf","asset_3ed9575dcc488c3e3a5bd66620bdf5a4.ttf","asset_4ea26cd5e7f64894d6c2451446f7dda5.ttf","asset_ba5cde21eeea0d57ab7efefc99596cce.ttf","asset_1025a6e0fb0fa86f17f57cc82a6b9756.ttf","asset_0d297395392df08b2b6734d952a15a42.ttf","asset_0bb18576bcb98f650c57f47ad8c20990.ttf","asset_778ffc9fe8773a878e9c30a6304784de.png","asset_376d6a4c7f622917c39feb23671ef71d.png","asset_c79c3606a1cf168006ad3979763c7e0c.png","asset_02bc1fa7c0313217bde2d65ccbff40c9.png","asset_35ba0eaec5a4f5ed12ca16fabeae451d.png"],"android":{"package":"com.yayzy"},"sdkVersion":"35.0.0","platforms":["ios","android","web"],"hostUri":"expo.io/@cristiandan/yayzy","commitTime":"2019-11-14T16:44:53.358Z","dependencies":["@expo/samples","@expo/vector-icons","@react-navigation/web","aws-amplify","aws-amplify-react-native","babel-plugin-inline-import","botframework-directlinejs","expo","expo-asset","expo-constants","expo-font","expo-web-browser","install","lottie-react-native","moment","querystring","react","react-dom","react-native","react-native-chart-kit","react-native-easy-grid","react-native-elements","react-native-error-boundary","react-native-gesture-handler","react-native-gifted-chat","react-native-looped-carousel","react-native-maps","react-native-svg","react-native-vector-icons","react-native-web","react-native-webview","react-navigation","react-redux","reactotron-react-native","reactotron-redux","redux","redux-actions","redux-persist","redux-thunk","sentry-expo"],"ios":{"buildNumber":"43","supportsTablet":true,"bundleIdentifier":"com.yayzy"},"updates":{"fallbackToCacheTimeout":0}},"shell":true}},"rootTag":1}. __DEV__ === false, development-level warning are OFF, performance optimizations are ON
11-14 17:21:25.966 com.yayzy 17596 17688 E ReactNativeJS Application main has not been registered.
11-14 17:21:25.966 com.yayzy 17596 17688 E ReactNativeJS
11-14 17:21:25.966 com.yayzy 17596 17688 E ReactNativeJS Hint: This error often happens when you're running the packager (local dev server) from a wrong folder. For example you have multiple apps and the packager is still running for the app you were working on before.
11-14 17:21:25.966 com.yayzy 17596 17688 E ReactNativeJS If this is the case, simply kill the old packager instance (e.g. close the packager terminal window) and start the packager in the correct app folder (e.g. cd into app folder and run 'npm start').
11-14 17:21:25.966 com.yayzy 17596 17688 E ReactNativeJS
11-14 17:21:25.966 com.yayzy 17596 17688 E ReactNativeJS This error can also happen due to a require() error during initialization or failure to call AppRegistry.registerComponent.
11-14 17:21:25.966 com.yayzy 17596 17688 E ReactNativeJS
11-14 17:21:25.970 com.yayzy 17596 - D AndroidRuntime Shutting down VM
11-14 17:20:06.804 17228 - E AndroidRuntime FATAL EXCEPTION: main
11-14 17:20:06.804 17228 - E AndroidRuntime Process: com.yayzy, PID: 17228
11-14 17:20:06.804 17228 - E AndroidRuntime java.lang.RuntimeException: Expo encountered a fatal error: invalid host
11-14 17:20:06.804 17228 - E AndroidRuntime at host.exp.exponent.experience.a$2.run(BaseExperienceActivity.java:197)
11-14 17:20:06.804 17228 - E AndroidRuntime at android.os.Handler.handleCallback(Handler.java:873)
11-14 17:20:06.804 17228 - E AndroidRuntime at android.os.Handler.dispatchMessage(Handler.java:99)
11-14 17:20:06.804 17228 - E AndroidRuntime at android.os.Looper.loop(Looper.java:193)
11-14 17:20:06.804 17228 - E AndroidRuntime at android.app.ActivityThread.main(ActivityThread.java:6863)
11-14 17:20:06.804 17228 - E AndroidRuntime at java.lang.reflect.Method.invoke(Native Method)
11-14 17:20:06.804 17228 - E AndroidRuntime at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
11-14 17:20:06.804 17228 - E AndroidRuntime at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
11-14 17:21:25.970 com.yayzy 17596 - E AndroidRuntime FATAL EXCEPTION: main
11-14 17:21:25.970 com.yayzy 17596 - E AndroidRuntime Process: com.yayzy, PID: 17596
11-14 17:21:25.970 com.yayzy 17596 - E AndroidRuntime java.lang.RuntimeException: Expo encountered a fatal error: invalid host
11-14 17:21:25.970 com.yayzy 17596 - E AndroidRuntime at host.exp.exponent.experience.a$2.run(BaseExperienceActivity.java:197)
11-14 17:21:25.970 com.yayzy 17596 - E AndroidRuntime at android.os.Handler.handleCallback(Handler.java:873)
11-14 17:21:25.970 com.yayzy 17596 - E AndroidRuntime at android.os.Handler.dispatchMessage(Handler.java:99)
11-14 17:21:25.970 com.yayzy 17596 - E AndroidRuntime at android.os.Looper.loop(Looper.java:193)
11-14 17:21:25.970 com.yayzy 17596 - E AndroidRuntime at android.app.ActivityThread.main(ActivityThread.java:6863)
11-14 17:21:25.970 com.yayzy 17596 - E AndroidRuntime at java.lang.reflect.Method.invoke(Native Method)
11-14 17:21:25.970 com.yayzy 17596 - E AndroidRuntime at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
11-14 17:21:25.970 com.yayzy 17596 - E AndroidRuntime at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
11-14 17:21:25.973 com.yayzy 17596 17706 D OSTracker OS Event: crash
And the iOS crash logs:
#2 0x104665f74 in -[EXAppViewController maybeShowError:] ()
#3 0x104685ec0 in handleFatalReactError_block_invoke_2 ()
Expo CLI 3.5.0 environment info:
System:
OS: macOS 10.15.1
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.16.3 - /usr/local/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
IDEs:
Xcode: 11.2/11B52 - /usr/bin/xcodebuild
npmPackages:
expo: ^35.0.0 => 35.0.0
react: 16.8.3 => 16.8.3
react-native: https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz => 0.59.8
react-navigation: ^3.11.0 => 3.12.1
npmGlobalPackages:
expo-cli: 3.5.0
You can find the android version here:
https://expo.io/artifacts/db065f97-560d-44fc-9872-38a194ec7b8b
dependencies
"dependencies": {
"@expo/samples": "~3.0.3",
"@expo/vector-icons": "^10.0.3",
"@react-navigation/web": "^1.0.0-alpha.9",
"aws-amplify": "^1.1.38",
"aws-amplify-react-native": "^2.1.19",
"babel-plugin-inline-import": "^3.0.0",
"botframework-directlinejs": "^0.11.6",
"expo": "^35.0.0",
"expo-asset": "~7.0.0",
"expo-constants": "~7.0.0",
"expo-font": "^7.0.0",
"expo-web-browser": "~7.0.0",
"install": "^0.13.0",
"lottie-react-native": "~2.6.1",
"moment": "^2.24.0",
"querystring": "^0.2.0",
"react": "16.8.3",
"react-dom": "^16.8.6",
"react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz",
"react-native-chart-kit": "^3.10.0",
"react-native-easy-grid": "^0.2.2",
"react-native-elements": "^1.2.3",
"react-native-gesture-handler": "~1.3.0",
"react-native-gifted-chat": "^0.11.3",
"react-native-looped-carousel": "^0.1.13",
"react-native-maps": "~0.25.0",
"react-native-svg": "^9.9.4",
"react-native-vector-icons": "^6.6.0",
"react-native-web": "^0.11.4",
"react-native-webview": "7.0.5",
"react-navigation": "^3.11.0",
"react-redux": "^7.1.1",
"reactotron-react-native": "^4.0.2",
"reactotron-redux": "^3.1.2",
"redux": "^4.0.4",
"redux-actions": "^2.6.5",
"redux-persist": "^6.0.0",
"redux-thunk": "^2.3.0"
},