skip to Main Content

enter image description here

i can’t build apk and I have this error

2

Answers


  1. Chosen as BEST ANSWER

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


  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search