App Crashes - On upgrading to Android 14(SDK 34)
Problem
Description Currently, my codebase supports Android 13 (SDK version: 33). I wanted to upgrade to SDK 33(Android 14) On Android 14 updates, the following changes have been made: kotlinVersion = "1.6.0" buildToolsVersion = "34.0.0" minSdkVersion = 23 compileSdkVersion = 34 targetSdkVersion = 34 My current React Native version is 0.70.8. However, upon launching the application, I encountered an issue where the App Crashes immediately on the launch. To investigate this, I pulled a Bug Report, which provided the following insights: 1. Caused by: java.lang.RuntimeException: Requested enabled DevSupportManager, but BridgeDevSupportManager class was not found or could not be created. 2. Caused by: java.lang.SecurityException: : One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts. 3. Caused by: java.lang.reflect.InvocationTargetException. 4. Caused by: android.os.RemoteException: Remote stack trace. React Native Version 0.70.8 Output of `npx react-native info` System: OS: macOS 14.0 CPU: (8) arm64 Apple M1 Memory: 65.91 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.4.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 9.8.1 - /opt/homebrew/bin/npm Watchman: 2023.07.10.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.13.0 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.0, iOS 17.0, macOS 14.
Error Output
Exception: Requested enabled DevSupportManager, but BridgeDevSupportManager class was not found or could not be created.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: App Crashes - On upgrading to Android 14(SDK 34)
I upgraded to 0.73 from RN0.72.7 and android sdk 34,encountered an issue where the App Crashes immediately on the launch
Trust Score
7 verifications
- 1
I upgraded to 0.73 from RN0.72.7 and android sdk 34,encountered an issue where t
I upgraded to 0.73 from RN0.72.7 and android sdk 34,encountered an issue where the App Crashes immediately on the launch
Validation
Resolved in facebook/react-native GitHub issue #41288. Community reactions: 42 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep