react-native-splash-screen: After splash screen appears the following error comes, why?
After splash screen appears the following error comes, why?
Drawable com.fettanmb:layout/launch_screen with resource ID #0x7f0b002f File res/layout/launch_ screen.xml from drawable resource ID #0x7fOb002f Class not found RelativeLayout Didn't find class "RelativeLayout" on path: DexXPathList[[zip file "/data/app/ w~2X6pV5uSDu8iSperw7JtzQ==/ com.fettanmb-6BQm1jQ08RJslOEJKZnulg==/ base.apk"l,nativeLibraryDirectories-(/datal app/~~2X6pV5uSDu8iSperw7 JtzQ==/ com.fettanmb-6BQm1jQ08RJslOEJKZnulg==/ lib/arm64, /data/app/ w2X6pV5uSDu8iSperw7 JtzQ==/ com.fettanmb-6BQm1jQ08RJslOEJKZnulg==/ base.apk!/lib/arm64-v8a, /system/lib64, / system/system _ext/lib64]
//res/layout/launch_screen.xml
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/fettan" /> </RelativeLayout>
//res/values/styles.com <resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:editTextBackground">@layout/launch_screen</item>
<item name="android:windowIsTranslucent">true</item>
</style>
</resources>
_Originally posted by @Bisiedigital in https://github.com/crazycodeboy/react-native-splash-screen/issues/432#issuecomment-1730236798_
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 15
Remove the following line in styles.xml:
<item name="android:editTextBackground">@layout/launch_screen</item>This line is mentioned in some old documentation and blogposts, but is not necessary (anymore). Just adding launch_screen.xml in the layout directory, works fine.
This one work for me I just comment the same line mentioned by the @fikkatra
I switched to https://github.com/zoontek/react-native-bootsplash