Issue
This Content is from Stack Overflow. Question asked by Adrien Senut
i can’t build apk and I have this error
Solution
Try clean build:
- Delete node_modules
- npm cache clean –force
- npm install
- cd android
- gradlew clean
- gradlew assembleRelease -x bundleReleaseJsAndAssets
if this fails: in root of project:
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
You can track this issue here: https://github.com/facebook/react-native/issues/28510
This Question was asked in StackOverflow by Adrien Senut and Answered by Priyanshu Chauhan It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.