i can't build apk and I have this error
CodePudding user response:
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
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