🐛 App crashes after adding enableDangerousExperimentalLeanBuilds in app.json
See original GitHub issue🐛 Bug Report
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
}
app.json
{
"expo": {
"name": "my_app",
"slug": "my_app",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"android": {
"package": "com.myapp",
"versionCode": 1,
"enableDangerousExperimentalLeanBuilds": true
}
}
}
The app works fine in development, but when I add enableDangerousExperimentalLeanBuilds in app.json file and I build the App Bundle, the application crashes after installing and opening it on my device. I thought the problem was from the splash screen package, but after spending the whole day testing. I finally could figure out the problem.
The problem happens only with the latest expo SDK 39
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
android - Expo build crashed when using ... - Stack Overflow
After i searched in google i found that by adding this "enableDangerousExperimentalLeanBuilds" : true to the app.json file will reduce the ...
Read more >Diagnosing issues using crash reports and device logs
Inspect your running app to isolate bugs, locate crashes, identify excess system resource usage, visualize memory bugs, and investigate view layout problems.
Read more >Expo app crashes when attempting to write a new record with ...
I created an Expo React Native app using the “Quick start with Expo” documentation. I modified the schema and variable names to match...
Read more >Troubleshooting build errors and crashes - Expo Documentation
A reference for troubleshooting build errors and crashes when using EAS Build. ... This particular error means that the app is importing ....
Read more >App Center Crashes for React Native - Microsoft Learn
The log is first written to the device's storage and when the user starts the app again, the crash report will be sent...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@brentvatne Unfortunately for me its throwing this error after installing
expo-updates
andexpo-splash-screen
when I runexpo build:android -t apk
P.S. Tried install
jsonfile
but got new errorError: Cannot find module 'core-js/es/string/match-all'
Fixed -
expo-updates
andexpo-splash-screen
node_modules
sorry, you may have to eject if you would like more control over your app size for now. we’ll look into this but it’s an experimental feature and we don’t offer any stability guarantees for it