I am facing an issue where my React Native app is not running on Android 14. The app works perfectly on Android 13 and all previous versions.
Steps to Reproduce:
Run the command:
bash
Copy code
npx react-native run-android
The build process completes successfully without any errors.
The app launches and works as expected on devices running Android 13 and below.
On devices running Android 14, the app does not start. There are no error messages or logs indicating the cause of the problem.
Environment:
React Native Version: 0.68.1
Development Command: npx react-native run-android
Build Status: Successful
Android Version: 14 (Issue observed)
Android Versions Tested: 13 and below (Working)
Observations:
The build process completes without errors on all Android versions.
The app runs successfully on Android 13 and older versions.
On Android 14, the app does not start and no errors are thrown.
Additional Information:
I have checked the build logs and device logs, but there are no relevant error messages or warnings that could point to the issue.
The device running Android 14 is compatible and has the necessary configurations for running React Native apps.
Request for Help:
I would appreciate any insights or suggestions on:
Why the app might not be launching on Android 14 despite a successful build.
Potential differences or changes in Android 14 that could be affecting the app launch.
Any debugging steps or logs that I might have missed to identify the root cause.
Thank you in advance for your help!
Steps I Have Tried:
To resolve this issue, I have followed the suggestions mentioned in this Stack Overflow post about React Native Android app not working in release mode. Here are the steps I took:
Proguard Rules: Added the recommended Proguard rules to proguard-rules.pro:
Checking Permissions: Verified that all necessary permissions are declared in AndroidManifest.xml.
Debugging with Logs: Added extensive logging in the Java and JavaScript code to catch any potential errors or issues during the app launch on Android 14.
Despite these efforts, the app still does not launch on Android 14, and there are no errors or logs indicating the issue.
Request for Help:
I would appreciate any insights or suggestions on:
Why the app might not be launching on Android 14 despite a successful build.
Potential differences or changes in Android 14 that could be affecting the app launch.
Any additional debugging steps or logs that I might have missed to identify the root cause.
Thank you in advance for your help!
anilkumar therunner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.