Issue in expo 39 in start up in android sometimes

Please provide the following:

  1. SDK Version: 39
  2. Platforms(Android/iOS/web/all): 10

I am getting this crash before splash screen tried to upgrade sdk from 36 to 39.
Caused by: java.lang.RuntimeException: Expo encountered a fatal error: Attempt to invoke virtual method ‘host.exp.exponent.j host.exp.exponent.j.c(java.lang.String, java.lang.Object)’ on a null object reference
at host.exp.exponent.experience.q.F(BaseExperienceActivity.java:7)
at host.exp.exponent.experience.a.run(Unknown Source:2)
at android.app.Activity.runOnUiThread(Activity.java:6973)
at host.exp.exponent.experience.q.E(BaseExperienceActivity.

I am getting this error sometimes when I open standalone expo apk in android after upgrading expo from 36 to 39…
please let me know stable version for expo.I used this command to generate build-
expo build:android

Expected- Each time opening app there should be no crash
Actual- On app startup 2 times out of 4 there is crash on android

package.json-
{

“main”: “node_modules/expo/AppEntry.js”,

“scripts”: {

"start": "expo start",

"android": "expo start --android",

"ios": "expo start --ios",

"web": "expo start --web",

"eject": "expo eject"

},

“dependencies”: {

"@ptomasroos/react-native-multi-slider": "^2.2.0",

"@react-native-community/async-storage": "~1.12.0",

"@react-native-community/masked-view": "0.1.10",

"@react-native-community/picker": "1.6.6",

"@react-navigation/native": "^5.0.5",

"@react-navigation/stack": "^5.0.5",

"axios": "^0.19.2",

"country-state-city": "^1.0.4",

"expo": "^39.0.3",

"expo-av": "~8.6.0",

"expo-barcode-scanner": "~9.0.0",

"expo-camera": "~9.0.0",

"expo-constants": "~9.2.0",

"expo-document-picker": "~8.4.0",

"expo-file-system": "~9.2.0",

"expo-image-manipulator": "~8.3.0",

"expo-image-picker": "~9.1.0",

"expo-images-picker": "^1.0.5",

"expo-linear-gradient": "~8.3.0",

"expo-media-library": "~9.2.1",

"expo-multiple-media-imagepicker": "^1.2.1",

"expo-notifications": "~0.7.2",

"expo-permissions": "~9.3.0",

"expo-push-notification-helper": "^0.4.0",

"expo-splash-screen": "~0.6.1",

"moment": "^2.24.0",

"react": "16.13.1",

"react-country-region-selector": "^2.1.0",

"react-data-table-component": "^6.3.1",

"react-dom": "16.13.1",

"react-native": "https://github.com/expo/react-native/archive/sdk-39.0.0.tar.gz",

"react-native-animated-multistep": "^1.0.6",

"react-native-countdown-component": "^2.7.1",

"react-native-gesture-handler": "~1.7.0",

"react-native-image-zoom-viewer": "^3.0.1",

"react-native-keyboard-aware-scroll-view": "^0.9.2",

"react-native-modal": "^11.5.6",

"react-native-multi-slider": "^0.3.6",

"react-native-paper": "^3.6.0",

"react-native-reanimated": "~1.13.0",

"react-native-responsive-screen": "^1.4.0",

"react-native-safe-area-context": "3.1.4",

"react-native-sass-transformer": "^1.4.0",

"react-native-screens": "~2.10.1",

"react-native-searchable-dropdown": "^1.1.1",

"react-native-table-component": "^1.2.1",

"react-native-unimodules": "~0.11.0",

"react-native-web": "~0.13.7",

"react-native-webview": "^10.7.0",

"react-native-youtube-iframe": "^1.3.0",

"react-navigation": "^3.6.1",

"react-navigation-drawer": "^2.4.2",

"react-navigation-stack": "^2.1.1",

"react-redux": "^7.2.0",

"redux": "^4.0.5",

"redux-devtools-extension": "^2.13.8",

"redux-persist": "^6.0.0",

"redux-thunk": "^2.3.0",

"sentry-expo": "^2.1.2",

"expo-web-browser": "~8.5.0",

"expo-intent-launcher": "~8.3.0"

},

“devDependencies”: {

"@babel/core": "^7.0.0",

"babel-eslint": "^10.1.0",

"babel-plugin-react-native-classname-to-style": "^1.2.2",

"babel-plugin-react-native-platform-specific-extensions": "^1.1.1",

"babel-preset-expo": "^8.3.0",

"eslint": "^7.9.0",

"eslint-config-standard": "^14.1.1",

"eslint-plugin-import": "^2.22.0",

"eslint-plugin-node": "^11.1.0",

"eslint-plugin-promise": "^4.2.1",

"eslint-plugin-standard": "^4.0.1",

"node-sass": "^4.13.1",

"reactotron-react-native": "^5.0.0"

},

“private”: true

}

Hey @priyanka.gupta,

As we mentioned on your Github issue, we need a reproducible demo to be able to help. Additionally, I strongly suggest getting off of ExpoKit and using the Bare workflow.

Cheers,
Adam

Hey
@adamjnav

I have created sample project using expo 39 sdk still getting crash on start up of app before splash screen in android 10 sometimes app opens and sometimes it does not open
here is my package.json –
{
“main”: “node_modules/expo/AppEntry.js”,
“scripts”: {
“start”: “expo start”,
“android”: “expo start --android”,
“ios”: “expo start --ios”,
“web”: “expo start --web”,
“eject”: “expo eject”
},
“dependencies”: {
“expo”: “~39.0.2”,
“expo-status-bar”: “~1.0.2”,
“react”: “16.13.1”,
“react-dom”: “16.13.1”,
“react-native”: “https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz”,
“react-native-web”: “~0.13.12”
},
“devDependencies”: {
@babel/core”: “~7.9.0”
},
“private”: true
}

Here is my app.json-
{
“expo”: {
“name”: “sample”,
“slug”: “sample”,
“version”: “1.0.0”,
“orientation”: “portrait”,
“icon”: “./assets/icon.png”,
“splash”: {
“image”: “./assets/splash.png”,
“resizeMode”: “contain”,
“backgroundColor”: “#ffffff
},
“updates”: {
“fallbackToCacheTimeout”: 0
},
“assetBundlePatterns”: [
“**/*”
],
“ios”: {
“supportsTablet”: true
},
“web”: {
“favicon”: “./assets/favicon.png”
},
“android”: {
“package”: “com.sample.test”,
“versionCode”: 1

}
}
}

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.