Description
Android 14 requires the flag RECEIVER_NOT_EXPORTED or RECEIVER_EXPORTED when registerReceiver
Maybe related to this issue
#31870
React Native Version
0.71.10
Output of npx react-native info
System:
OS: macOS 13.4
CPU: (8) arm64 Apple M2
Memory: 55.25 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.0.0 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.6.4 - /opt/homebrew/bin/npm
Watchman: 2023.05.15.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.1 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 17.0.6 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.10 => 0.71.10
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Set targetSdkPreview and compileSdkPreview to UpsideDownCake and build an app for Android.
The application will be crashed immediately after opening.
Snack, code example, screenshot, or link to a repository

Description
Android 14 requires the flag
RECEIVER_NOT_EXPORTEDorRECEIVER_EXPORTEDwhenregisterReceiverMaybe related to this issue
#31870
React Native Version
0.71.10
Output of
npx react-native infoSystem:
OS: macOS 13.4
CPU: (8) arm64 Apple M2
Memory: 55.25 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.0.0 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.6.4 - /opt/homebrew/bin/npm
Watchman: 2023.05.15.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.1 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 17.0.6 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.10 => 0.71.10
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Set
targetSdkPreviewandcompileSdkPreviewtoUpsideDownCakeand build an app for Android.The application will be crashed immediately after opening.
Snack, code example, screenshot, or link to a repository