Open RyanKins opened 1 year ago
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
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...
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
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.
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.
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
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 👍👏
Remove this line from styles.xml
<item name="android:editTextBackground">@layout/launch_screen</item>
If you are using TextInput in your component just remove. It work's for me
@fikkatra thanks for providing solution it working
@fikkatra Thank you. It work's for me
- @layout/launch_screen
This worked for me, Thankyou!
This problem usually occurs in React Native >=0.73. Remove the following line in styles.xml:
<item name="android:editTextBackground">@layout/launch_screen</item>
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 works for me. However running in windows does not require to remove that line while in mac if line persist it throws the error.
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" />
//res/values/styles.com
Originally posted by @Bisiedigital in https://github.com/crazycodeboy/react-native-splash-screen/issues/432#issuecomment-1730236798