-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Android release build fails #25482
Comments
It looks like you are using an older version of React Native. Please update to the latest release, v0.60 and verify if the issue still exists. The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running `react-native info` on a project using the latest release.
|
Tried with 0.60.0 (as specified in the issue description), and issue still exists. So there are two things worth mentioning:
This is huge, can't release an update to the Android app -and I'm already wasting a lot of time with this, don't want to spend a considerable amount of time making the iOS app comply with 0.60.0 changes at the moment. |
I also have the same problem on rn0.59, and I resolved it by a workaround way as the following. Then execute: It resolved my problem but it is not a good way. |
Hey, we ran into the same error but we managed to solve it by upgrading react-native-sentry and react-native-code-push And then we run into different error :( Cheers! |
Thanks to the previous comments, I believe I got it to work. Have to check if there are runtime issues, but the project now compiles in release mode, I already uploaded an alpha channel build to Google Play. There were some issues in between (as the comments say), so this is what I did:
No errors now, project compiles, |
|
I can now make the .apks but not the .aab. |
I am using rn For example: diff --git a/android/app/build.gradle b/android/app/build.gradle
index 252cbbae8..2d207dfab 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -90,7 +90,7 @@ project.ext.react = [
apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"
-apply from: "../../node_modules/react-native-sentry/sentry.gradle"
+//apply from: "../../node_modules/react-native-sentry/sentry.gradle"
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
/**
@@ -195,7 +195,7 @@ dependencies {
implementation project(':react-native-background-fetch')
implementation project(':react-native-background-geolocation')
implementation project(':react-native-onesignal')
- implementation project(':react-native-sentry')
+ //implementation project(':react-native-sentry')
implementation (project(':react-native-camera')) {
exclude group: "com.google.android.gms"
implementation 'com.android.support:exifinterface:25.+'
diff --git a/android/settings.gradle b/android/settings.gradle
index 6afeb3887..1cc99e883 100644
--- a/android/settings.gradle
+++ b/android/settings.gradle
@@ -17,8 +17,8 @@ include ':react-native-background-geolocation'
project(':react-native-background-geolocation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-background-geolocation/android')
include ':react-native-onesignal'
project(':react-native-onesignal').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-onesignal/android')
-include ':react-native-sentry'
-project(':react-native-sentry').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sentry/android')
+//include ':react-native-sentry'
+//project(':react-native-sentry').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sentry/android')
include ':react-native-camera'
project(':react-native-camera').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-camera/android')
include ':@remobile-react-native-toast' |
We had the same issue, upgrading to a newer version of |
We had the same issue. upgrading to |
react-native-sentry is rubbish!!! |
@ferostar Thanks for the detailed breakdown, this helped me fix the issue. I can confirm that upgrading Sentry to |
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. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Can't create an Android release build -debug works. A comment on a closed, related issue, says it's a matter of version conflict between
react-native
(0.59.x) andGradle plugin
(3.4.x).Tried downgrading the plugin to 3.3.x (as other users did on the thread) and also upgraded RN to 0.60.0 which, according to the comment, supports 3.4.x. No matter the versions, issue persists.
React Native version:
Steps To Reproduce
What actually happens:
Stacktrace:
The text was updated successfully, but these errors were encountered: