-
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
App crashes on launch when building a variant release #24854
Comments
Hi @GianMantuan I just encountered this too. By chance I remember being prompted by Android Studio to upgrade my Gradle Version earlier in the day. I reverted my Gradle version and the issue immediately resolved itself. Here are the gradle changes that Android Studio applied: Once I reverted this change and re-built the release variant it worked without issue again. |
Thank you @kylethielk , I tried the same and it worked for me |
Hey everyone, thanks for reporting this - it seems to suggest that RN 0.59.x can't be used with Gradle 3.4.0 - I'll ask if it's a known limitation of the current version. |
I found problem same you but my platform is windows. |
I've investigated and yes, I can confirm that the current latest 0.59.x is NOT compatible with Gradle 3.4.0. But surely 0.60 will, thanks to this commit: 30348f7 We will try to see if we can cherry pick it for the next 0.59.9, but it's unlikely (you can stay updated here: react-native-community/releases#124). Please be patient, we are trying to get an 0.60 RC out this week. (in the meantime I'll close this since it's a known limitation already fixed on master) |
Thanks for your reply :) |
Thank you @kylethielk, your solution worked for me. It was the Gradle after all... |
This might help someone having the same issue: this is the workaround that I found for now:
where I have this in
and this in
|
Try it out guys:
|
Same issue on android 5.0.1 only it is ok on android 6 |
After update my project to the latest version of React-Native, the APK start to crash on launch, so I create a new project with the latest version o RN, without any code and simply run the
react-native run-android --variant=release
and this new project crash on launchPS: i configured the keystore and the variant releases in
build.graddle
Environment
React Native version:
Steps To Reproduce
Expected Behavior
The App should run without any crash or error.
App returns BUILD SUCCESS, but crashes without logging any error on start
Code Example
App.js
The text was updated successfully, but these errors were encountered: