react-native-splash-screen icon indicating copy to clipboard operation
react-native-splash-screen copied to clipboard

Splash screen crashing on Android 11 with target sdk 30

Open Harvinder5 opened this issue 4 years ago • 5 comments

     compileSdkVersion = 30
    buildToolsVersion = "30.0.3"
    minSdkVersion = 23
    targetSdkVersion = 30
    ndkVersion = "20.1.5948944"

System: OS: macOS 11.4 CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz Memory: 27.45 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.3.0 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 7.17.0 - /usr/local/bin/npm Watchman: Not Found Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4 Android SDK: API Levels: 30 Build Tools: 30.0.2, 30.0.3 System Images: android-30 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 4.2 AI-202.7660.26.42.7351085 Xcode: 12.5/12E262 - /usr/bin/xcodebuild Languages: Java: 1.8.0_292 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.1 => 17.0.1 react-native: 0.64.1 => 0.64.1 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

react-native-splash-screen version 3.2.0

What platform does your issue occur on? (Android/iOS/Both)

Describe your issue as precisely as possible :

not a rocket science to produce the bug just launch the app in android 11 and it will crash even before the screen displays

Harvinder5 avatar Jun 13 '21 14:06 Harvinder5

@Harvinder5 Did you get any solution for this? If so, Kindly share with us as I am also stuck in the same issue

ZentPeople avatar Jul 09 '21 16:07 ZentPeople

I have the same issue I see, in the layout folder, you must create launch_screen.xml (do not change the name)

pmtu95 avatar Jul 24 '21 10:07 pmtu95

@pmtu95 i am using the same name from the beginning the issue is when android build and target sdk is set to 30 it starts crashing on android 11

Harvinder5 avatar Aug 19 '21 18:08 Harvinder5

@ZentPeople have you find the solution? it's still not working for me

Harvinder5 avatar Aug 19 '21 18:08 Harvinder5

@Harvinder5 it switched the library https://github.com/zoontek/react-native-bootsplash

ZentPeople avatar Dec 09 '21 12:12 ZentPeople