expo: enableDangerousExperimentalLeanBuilds needs to be marked as unsupported for SDK 41+ projects
Summary
🐛 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": "^41.0.0",
"expo-status-bar": "~1.0.4",
"expo-notifications": "^0.11.5",
"expo-splash-screen": "^0.10.2",
"expo-updates": "^0.5.4",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.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,
"permissions": [""],
"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 have already had the exact same issue before #10569. But I could fix it by installing these package: expo-notifications expo-updates expo-splash-screen
Now I’m still having the same problem even tough those packages have been already installed
Managed or bare workflow? If you have ios/
or android/
directories in your project, the answer is bare!
managed
What platform(s) does this occur on?
Android
SDK Version (managed workflow only)
41
Environment
Expo CLI 4.4.1 environment info:
System:
OS: Windows 10 10.0.17763
Binaries:
Node: 12.14.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 4.1.0.0 AI-201.8743.12.41.7042882
npmPackages:
expo: ^41.0.0 => 41.0.0
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz => 0.63.2
react-native-web: ~0.13.12 => 0.13.18
Expo Workflow: managed
Reproducible demo or steps to reproduce from a blank project
The problem doesn’t happen while development. It happens when I build the app and install it on my device. Larger apps see lower install and update success rates and take up device storage on user’s devices, that’s why I’m using enableDangerousExperimentalLeanBuilds
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (9 by maintainers)
your options are:
enableDangerousExperimentalLeanBuilds
.enableDangerousExperimentalLeanBuilds
on SDK 41.no worries @AbdnhVmpr - have a great weekend!