-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task :app:bundleReleaseJsAndAssets FAILED #28510
Comments
I'm having this issue too. When I try to run a release with |
|
I fixed it using these steps;
Source: Stackoverflow |
by using this, apk was created but crashed when open |
Had this exact same issue happen to me. I have created the keystore, updated the values in gradle.properties and app/build.gradle file. |
Thanks. My problem was that I ran I switched from Git Bash to cmd with Administrator rights and entered |
I faced this issue in window because window system need to install below package. |
I have the same issue , any solution ? |
Following the official react native publishing tutorial to the point where you have to If that command fails, then: Edit 0: The files being deleted are leftovers that interfere with |
There's some solutions suggested above. Running git bash admin, installing that package. With those is anyone still blocked here? |
I was facing the same issue and tried the solutions mentioned above, but nothing helps. Then, I rename my folder, removing the space between the words (eg: "React Native" -> "React-Native") and my problem was solved. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
I found this works for me, tell me if it works for you too:
Try to downgrade |
|
Also, it happens when you change |
Just open the project in cmd (administrator mode) in android folder run |
@usersina's answer has helped me past this issue
I'm not sure if this issue is |
I had the exact error and all I did was
and it build successfully |
Try setting project.ext.react = [
enableHermes: true,
bundleInRelease: false // Add this line
] |
any new solution ?? |
what will this line do? |
cd android/ React-native 0.68.2, This works to me! |
I'm closing this issue as this is from 2020. |
getting same error in order to get rid of this error as i am following this article and triggering bunch of errors New Version0.71.1 Old Version0.63.4 |
The solution is so simple, your project ancestors folder names should not contain spaces, like in your error: |
Magic ! thanks. |
Where do we have to add this line?? |
you can see it in android/app/build.gradle |
I faced this same issue on Mac OS, was related to metro-bundler not having access to the folder in which my project was kept. I restarted my system and re-run the command. The bundler asked for permission to access the folder and after that I was able to generate the build. Hope it helps. Thanks |
@arpansharma7474 @tnson1307 @hustcer @ChawkiOS @KarineValenca why im getting this error i wan to fix it and generate apk
FAILURE: Build failed with an exception.
npx react-native info : System: package.json: |
In my case downgrading the node version from 20 to 16lts worked. it worked for both old builds supporting api level 31 and api level 33 as well. in my case, all the node modules were not of latest version in my project. |
I'm following this to get my signed APK
Description
Executing ./gradlew bundleRelease or ./gradlew assembleRelease however gives an error.
> Task :app:bundleReleaseJsAndAssets warning: the transform cache was reset. Loading dependency graph, done. info Writing bundle output to:, A:\Documents\React info Writing sourcemap output to:, A:\Documents\React info Done writing bundle output info Done writing sourcemap output info Copying 33 asset files error EEXIST: file already exists, mkdir 'A:\Documents\React'. Run CLI with --verbose flag for more details. Error: EEXIST: file already exists, mkdir 'A:\Documents\React'
> Task :app:bundleReleaseJsAndAssets FAILED FAILURE: Build failed with an exception. Execution failed for task ':app:bundleReleaseJsAndAssets'
React Native version:
Binaries:
Node: 13.10.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.13.7 - C:\Program Files\nodejs\npm.CMD
SDKs:
Android SDK:
API Levels: 23, 25, 28, 29
Build Tools: 25.0.2, 28.0.3, 29.0.2, 29.0.3, 30.0.0
System Images: android-18 | Google APIs ARM EABI v7a, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86
Atom
IDEs:
Android Studio: Version 3.6.0.0 AI-192.7142.36.36.6241897
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5
Expected Results
Getting a signed apk file.
./gradlew assembleDebug works with no issues
The text was updated successfully, but these errors were encountered: