Process 'command 'npx.cmd'' Finished With Non-zero Exit Value 1 React Native Build Problem
Solution 1:
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
Solution 2:
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
Solution 3:
Personally, I had to run the app form within Android Studio. That gave me a clearer error message which allowed me to fix the issue.
The error in my case had to do with entryFile: "index.android.js", inside app/build.gradle.
I had to change it to index.js since that was the entry point in my RN project.
Post a Comment for "Process 'command 'npx.cmd'' Finished With Non-zero Exit Value 1 React Native Build Problem"