-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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 immediately without any error log #41954
Comments
|
unable to create a repro |
The app works fine in release mode but fails in debug mode |
same is happening with me |
Did you check logs in Android Studio's Logcat? I often do that when Metro doesn't show any logs during crashes. 99.9% chance you will see some useful log in Logcat that explains why the app crashes. |
Having the same issue after upgrade from 0.71.7. I followed all the instructions from https://react-native-community.github.io/upgrade-helper/?from=0.71.7&to=0.73.1 In Logcat I see this exception
My AndroidManifest.xml
|
Probably you missed something in MainApplication.java , probably a small typo. open this file in android studio for recheck , also check for typos in debug/AndroidManifest.xml |
check you have already apply Kotlin plugin in app/gradle.build apply plugin: "org.jetbrains.kotlin.android" |
@Vaib215 We can't help without a repro or a log of any sort sadly. |
@marijache Hello, did you fix this? I am getting the same crash and same error in logcat. Trying to update my rn version from 0.72.3 to 0.73.2 |
I'm having the same issue, i upgraded to 0.73.2 from 0.72, upgraded the project to gradle 8.1.1. My app build is Successfull but the app crash when i open it |
I have the exact same issue. Upgraded to 0.73 and followed the upgrade diffs. Works fine on iOS and crashes immediately on launch with Android. |
I solved it. For anyone else looking for this I accidentally left the wrong package in the top of You can take the logs from here and paste it into ChatGPT if you need more help.
|
Very thanks, this help me after upgrade RN 0.72-0.73, app build but crash on Android after start. |
I solved it by commenting out this line: |
Hey guys this might help someone else in future. |
Also |
From my own experience, what I realized is that if this issue is fixed by commenting out You'd need to open |
Old Version
0.72.3
New Version
0.73.0
Description
I upgraded all the libraries in my app and now when i run it in debug mode, it crashes immediately without any error log.
Here is my
package.json
:Here is
build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "33.0.0"
minSdkVersion = 21
compileSdkVersion = 33
targetSdkVersion = 33
kotlinVersion = "1.8.0"
}
Steps to reproduce
Install dependencies
Run the app
Affected Platforms
Runtime - Android, Build - MacOS
Output of
npx react-native info
The text was updated successfully, but these errors were encountered: