Process 'command 'npx.cmd'' finished with non-zero exit value 1 React native build problem

前端 未结 2 1033
一整个雨季
一整个雨季 2020-12-12 05:25

I am working on react native. When i try to create a build of android using

gradlew assembleRelease

then getting an

* What         


        
相关标签:
2条回答
  • 2020-12-12 05:43

    For me, I had to run npm run android once and then ./gradlew assembleRelease worked

    UPDATE: Run following command and see output log to find the bug

    npx 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

    0 讨论(0)
  • 2020-12-12 05:58

    use cd android

    after that use this ./gradlew clean

    and for apk ./gradlew assembleRelease -x bundleReleaseJsAndAssets

    or use this for aab ./gradlew bundleRelease -x bundleReleaseJsAndAssets

    Try these commands and please tell me if it works

    0 讨论(0)
提交回复
热议问题