Home > Blockchain >  react native ./gradlew bundleRelease not working
react native ./gradlew bundleRelease not working

Time:09-20

enter image description here

i can't build apk and I have this error

CodePudding user response:

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

CodePudding user response:

I fixed it, it was because one of my folder had a space and it tryed to run it as a command

  • Related