[SOLVED] react native ./gradlew bundleRelease not working


This Content is from Stack Overflow. Question asked by Adrien Senut

enter image description here

i can’t build apk and I have this error


Try clean build:

  1. Delete node_modules
  2. npm cache clean –force
  3. npm install
  4. cd android
  5. gradlew clean
  6. 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.

people found this article helpful. What about you?