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

Crashes with Android SDK <=27

Open spinoza1791 opened this issue 3 years ago • 2 comments
trafficstars

Successfully launches only with Android SDK >=28 Run react-native info in your project and share the content. System: OS: Windows 10 10.0.19044 CPU: (16) x64 AMD Ryzen 7 5800X 8-Core Processor Memory: 17.16 GB / 31.93 GB Binaries: Node: 16.15.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.18 - ~\AppData\Roaming\npm\yarn.CMD npm: 8.12.2 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: API Levels: 21, 24, 25, 28, 29, 30, 31, 32, 33 Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 32.1.0, 33.0.0, 33.0.0 System Images: android-21 | Android TV ARM EABI v7a, android-21 | ARM EABI v7a, android-21 | Intel x86 Atom, android-21 | Intel x86 Atom_64, android-21 | Google APIs ARM EABI v7a, android-21 | Google APIs Intel x86 Atom, android-21 | Google APIs Intel x86 Atom_64, android-24 | Intel x86 Atom_64, android-24 | Google APIs Intel x86 Atom_64, android-24 | Google Play Intel x86 Atom, android-25 | Google Play Intel x86 Atom, android-26 | Google Play Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom, android-30 | Google APIs ARM 64 v8a, android-30 | Google APIs Intel x86 Atom_64, android-30 | Google Play Intel x86 Atom, android-31 | Intel x86 Atom_64, android-31 | Google APIs Intel x86 Atom_64, android-31 | Google Play Intel x86 Atom_64, android-33 | Google APIs ARM 64 v8a, android-33 | Google APIs Intel x86 Atom_64, android-33 | Google Play Intel x86 Atom_64 Android NDK: 22.1.7171670 Windows SDK: AllowDevelopmentWithoutDevLicense: Disabled Versions: 10.0.19041.0 IDEs: Android Studio: Not Found Visual Studio: 17.1.32421.90 (Visual Studio Community 2022) Languages: Java: 11.0.12 npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: ^0.67.2 => 0.67.4 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found What react-native-splash-screen version are you using? "react-native-splash-screen": "^3.3.0", What platform does your issue occur on? (Android/iOS/Both) Testing Android Only Describe your issue as precisely as possible :

  1. Steps to reproduce the issue or to explain in which case you get the issue Followed basic install procedure, works fine on SDK 28
  2. Interesting logs

Join a screenshot or video of the problem on the simulator or device? image

Show us the code you are using?

spinoza1791 avatar Aug 08 '22 20:08 spinoza1791

Also, as evidence, the app itself launches fine in SDK 27 (but withouthsplash activation) if I comment out the offending splash code in MainActivity.java:


package com.myappname; import android.os.Bundle; import com.facebook.react.ReactActivity; import org.devio.rn.splashscreen.SplashScreen;

public class MainActivity extends ReactActivity {

/**

  • Returns the name of the main component registered from JavaScript. This is used to schedule
  • rendering of the component. */ @Override protected String getMainComponentName() { return "petstudioplus"; }

/* @Override protected void onCreate(Bundle savedInstanceState) { SplashScreen.show(this); // here super.onCreate(savedInstanceState); } */

spinoza1791 avatar Aug 08 '22 20:08 spinoza1791

Same here, any solution?

Fagner3g avatar Sep 28 '22 19:09 Fagner3g