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

After splash screen appears the following error comes, why?

Open RyanKins opened this issue 2 years ago • 15 comments

          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

<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

<!-- 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>

Originally posted by @Bisiedigital in https://github.com/crazycodeboy/react-native-splash-screen/issues/432#issuecomment-1730236798

RyanKins avatar Oct 25 '23 08:10 RyanKins

I'm also running into a similar error (Class not found RelativeLayout in launch_screen.xml). It seems to only occur when I try and load the sheet component from tamagui

//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/screen" android:scaleType="centerCrop" />
</RelativeLayout>

Edit: This seems like a duplicate of #624

alarner avatar Nov 02 '23 14:11 alarner

Has anyone found a solution? I've just hit the same error but when I try to navigate from the splash screen to another one...

Digital-Human-BK avatar Nov 08 '23 15:11 Digital-Human-BK

Has anyone found a solution? I've just hit the same error but when I try to navigate from the splash screen to another one...

I switched to https://github.com/zoontek/react-native-bootsplash

alarner avatar Nov 11 '23 18:11 alarner

Has anyone found a solution? I've just hit the same error but when I try to navigate from the splash screen to another one...

I switched to https://github.com/zoontek/react-native-bootsplash

I did the same, works like a charm.

Digital-Human-BK avatar Nov 14 '23 07:11 Digital-Human-BK

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.

fikkatra avatar Dec 18 '23 10:12 fikkatra

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

shahid-0 avatar Jan 05 '24 16:01 shahid-0

Elimine la siguiente línea en estilos.xml:

<item name="android:editTextBackground">@layout/launch_screen</item>

Esta línea se menciona en alguna documentación y publicaciones de blogs antiguas, pero ya no es necesaria. Simplemente agregar launch_screen.xml en el directorio de diseño funciona bien.

Gracias sirvió de mucho 👍👏

Orla08 avatar Jan 05 '24 21:01 Orla08

Remove this line from styles.xml <item name="android:editTextBackground">@layout/launch_screen</item>

vineetkrdixit avatar Mar 02 '24 18:03 vineetkrdixit

If you are using TextInput in your component just remove. It work's for me

vishwas-thangella avatar Mar 18 '24 17:03 vishwas-thangella

@fikkatra thanks for providing solution it working

sagarVentura avatar Jul 17 '24 05:07 sagarVentura

@fikkatra Thank you. It work's for me

chanakanaveen avatar Aug 13 '24 04:08 chanakanaveen

@layout/launch_screen

This worked for me, Thankyou!

abhilashbhosle avatar Aug 24 '24 10:08 abhilashbhosle

This problem usually occurs in React Native >=0.73. Remove the following line in styles.xml:

<item name="android:editTextBackground">@layout/launch_screen</item>

abhilashbhosle avatar Aug 24 '24 10:08 abhilashbhosle