Skip to content
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

Execution failed for task ':app:bundleReleaseJsAndAssets' #11034

Closed
mvnnn opened this issue Nov 20, 2016 · 10 comments
Closed

Execution failed for task ':app:bundleReleaseJsAndAssets' #11034

mvnnn opened this issue Nov 20, 2016 · 10 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@mvnnn
Copy link

mvnnn commented Nov 20, 2016

After update my app to RN0.37, i get following error while Generating android APK

react:15.3.2
react-native:0.37.0

error

@lacker
Copy link
Contributor

lacker commented Nov 30, 2016

It looks like you have some invalid code in your index.android.js - like you are writing "foo" ="foo" or somehow assigning to a string literal.

@lacker
Copy link
Contributor

lacker commented Nov 30, 2016

Could you provide a repro of this with a rnplay.org link?

@mvnnn
Copy link
Author

mvnnn commented Nov 30, 2016

This error happen because i set development mode in index.android.js.

@mvnnn mvnnn closed this as completed Nov 30, 2016
@kirakik
Copy link

kirakik commented Oct 4, 2017

@mvnnn Could you elaborate, please? What do you mean by setting the development mode? I'm getting the same issue.

@SirPhemmiey
Copy link

Any fix for this?

@GreenRidingHood
Copy link

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:bundleReleaseJsAndAssets'.

Process 'command 'node'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 47s
12 actionable tasks: 7 executed, 5 up-to-date

Any fix, can we open that issue again?

@SirPhemmiey
Copy link

Try to delete android/app/build and android/build folders and run react-native run-android again

@GreenRidingHood
Copy link

@SirPhemmiey yep i did, and I get another error after I run "cd android && ./gradlew clean && ./gradlew assembleRelease"

  • What went wrong:
    Execution failed for task ':app:processReleaseResources'.

Failed to execute aapt

... 2 days.. I am just trying to get "app-release.apk".
I go over "https://facebook.github.io/react-native/docs/signed-apk-android.html" create keystore, and stuck at release step .. I don't know, so frustrating.. I go over stackoverflow, github issues but.. nope..

my app works on android studio emulator, working with "npm run android" with genymotion emulator,

@GreenRidingHood
Copy link

@dengue8830
Copy link

i don't know if is the exact same problem, but i solved mine with this

downgrading to "babel-preset-react-native": "4.0.0" in the package.json and running npm install

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

7 participants