Open Abhishek-Khanduri opened 6 months ago
:warning: | Unsupported Version of React Native |
---|---|
:information_source: | It looks like your issue or the example you provided uses an unsupported version of React Native. Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support. |
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
It looks like you have set your minSdkVersion to 24 @Abhishek-Khanduri so perhaps this is relevant to you
This is my code in app/build.gradle
This is how the app/build.gradle
file should look like in a 0.71 project:
https://github.com/facebook/react-native/blob/0.71-stable/template/android/app/build.gradle
So your application is definitely misconfigured @Abhishek-Khanduri
my minSdkVersion is 21 but i am facing this same issue multiple of times. @cortinico @brien-crean
@sudhanshu-busy I followed a systematic approach to troubleshoot and resolve the crash issue with our React Native app on an Android 10 device. Here are the steps I took:
Set Up Sample App:
Configuration Transfer:
build.gradle
and app/build.gradle
) from the sample app to our app.Incremental Configuration Addition:
Identified Problematic Code Snippet:
Isolated the Issue:
This is the code snippet that we suspect that is causing the issue
allprojects {
repositories {
maven {
url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases"
}
configurations.all {
resolutionStrategy {
eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {
def file = new File("$rootDir/../node_modules/react-native/package.json")
def version = new groovy.json.JsonSlurper().parseText(file.text).version
details.useVersion version
}
}
}
}
}
}
You can use similar approach to back trace the root cause
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Description
In my React Native application, I have disabled Hermes because I need to use Jitsi, and Jitsi does not support Hermes. After disabling Hermes, my app started to crash for some Android 10 users, and I am getting almost 100-200 crash reports on Crashlytics each day.
This is my code in app/build.gradle
This is my build.gradle code
This is my gradle.properties code
I researched and tried all the possible solutions mentioned in the React Native Library repository for similar issues, but got no luck till now. This issue is impacting a lot of users of my application, the impact is huge so this needs to be fixed ASAP.
React Native Version
0.71.90
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
The error is occurring on the following devices:
Looking at the error trace it seems like the device is looking for hermes, but I have disabled so it is very strange to me.
I have also cleaned the Gradle before creating the bundle and also tried this multiple times on the internal testing environment and the same behavior there as well 😢