-
Notifications
You must be signed in to change notification settings - Fork 987
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 PR app insta crashes after upgrading react native
from 0.67.5
to 0.69.10
#16139
Comments
react native
from 0.67.5
to 0.69.10
The fatal error which causes the crash seems to be originating at : |
@jakubgs : yes the error is the same but the solution outlined in that stackoveflow post and what we had done for the last upgrade introduce newer problems. |
Adding this in project.ext.react = [
enableHermes: !disableHermes,
/* Disable 'The first definition was here.' warnings */
hermesFlagsRelease: ["-w"],
+ /* FIXME: Workaround for crash caused by missing libhermes-executor-release.so.
+ * https://github.com/facebook/react-native/issues/32928 */
+ deleteDebugFilesForVariant: { false },
+ enableVmCleanup: false,
bundleInPr: true,
inputExcludes: ["android/**", "ios/**", "react-native/**", "src/**", "test/**"]
]
android {
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.react:react-native:+" // From node_modules
+ implementation 'com.facebook.soloader:soloader:0.10.3+'
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
implementation "androidx.core:core-splashscreen:1.0.0" However, the app now infinitely hangs on the loading screen. |
The stacktrace in logcat now is this :
Seems to be something wrong with either |
this error is not new : https://stackoverflow.com/questions/72564710/react-native-crash-release-build-fatal-exception-create-react-context |
The [Android] and they use probably best to stick to what they use over there. also sometimes confusing that gradle and android gradle plugin versions are two different things 🥲 |
Fixed with downgrading gradle plugin version here : pname = "aapt2";
# Warning: This must be the same as gradlePluginVersion android/gradle.properties
- version = "7.3.0-8691043";
+ version = "7.2.2-7984345";
pkgPath = "com/android/tools/build/aapt2";
repoUrl = "https://dl.google.com/dl/android/maven2";
jar = fetchurl {
url = "${repoUrl}/${pkgPath}/${version}/${filenames.jar}";
sha256 = getAttr platform {
- linux = "sha256-AP75/vGPx4cOZ7K8w60FhZptB/836mGAdIJ2+gCtOVc=";
- osx = "sha256-Kg400fBovA3RlRpdnAPZXnPBliXFq5df+OpfhiAkvUc=";
+ linux = "sha256-BKtK5f7lxp0YdQU4AFGL933vjEAykQ1RiKpDwfc32oI=";
+ osx = "sha256-OORgWnGQS0GwqZrSg8sFQb4FM23hrYHwmarcYd8EO/0=";
};
};
sha = fetchurl {
url = "${repoUrl}/${pkgPath}/${version}/${filenames.jar}.sha1";
sha256 = getAttr platform {
- linux = "sha256-908Oq40eqHlu4KtlgJQIxyUu2IOyrtErjVc+MH5JM5E=";
- osx = "sha256-hQQVMnqzaNd2v57uxWIzea21MlAuGur01T6fpcWD1fc=";
+ linux = "sha256-4F4REWQLj8hdnh1tIwRVgdWJjUBhvvINP56nIscwePA=";
+ osx = "sha256-n0jFUphzlFnNacolbXoNmNHs/hXfktVpYRlJ1JW9ukU=";
};
};
pom = fetchurl {
url = "${repoUrl}/${pkgPath}/${version}/${filenames.pom}";
- sha256 = "sha256-HVQS9Dt7vvFN/MLr7I103KTbWQw3i/eCMUL+lNDFt6Y=";
+ sha256 = "sha256-XWEn9Zvxv0hgYU2yUSlZ4OiguZy1bz+Gh0wRrm4d9GQ=";
};
}; and here buildToolsVersion=31.0.0
supportLibVersion=28.0.0
# This should match version from nix/mobile/android/maven-and-npm-deps/maven/default.nix
- gradlePluginVersion=7.3.0
+ gradlePluginVersion=7.2.2
kotlinPluginVersion=1.6.20
android.useAndroidX=true |
Bug Report
The Android release app from this PR : #16016 insta crashes.
We've seen this behaviour in the last upgrade as well
ref : #15486 (comment)
Problem
After connecting logcat the stack trace is below :
This log below seems to be the root causes
Additional Information
The text was updated successfully, but these errors were encountered: