Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After splash screen appears the following error comes, why? #630

Open
RyanKins opened this issue Oct 25, 2023 · 14 comments
Open

After splash screen appears the following error comes, why? #630

RyanKins opened this issue Oct 25, 2023 · 14 comments

Comments

@RyanKins
Copy link

          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



//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 #432 (comment)

@alarner
Copy link

alarner commented Nov 2, 2023

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

@Digital-Human-BK
Copy link

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

@alarner
Copy link

alarner commented Nov 11, 2023

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

@Digital-Human-BK
Copy link

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.

@fikkatra
Copy link

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.

@shahid-0
Copy link

shahid-0 commented Jan 5, 2024

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

@Orla08
Copy link

Orla08 commented Jan 5, 2024

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 👍👏

@vineetkrdixit
Copy link

vineetkrdixit commented Mar 2, 2024

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

@vishwas-thangella
Copy link

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

@sagarVentura
Copy link

@fikkatra thanks for providing solution it working

@chanakanaveen
Copy link

@fikkatra Thank you. It work's for me

@abhilashbhosle
Copy link

@layout/launch_screen

This worked for me, Thankyou!

@abhilashbhosle
Copy link

abhilashbhosle commented Aug 24, 2024

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

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

@patidarV1jay
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests