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

drawable/launch_screen.png not found.

Open mharrisweb opened this issue 5 years ago • 5 comments

When I run my android project I get the error, launch_screen.png exists in the relevant folder.

How can I fix the error?

\android\app\src\main\res\layout\launch_screen.xml:5: AAPT: error: resource drawable/launch_screen.png (aka com.rg.tc:drawable/launch_screen.png) not found.

React Native Environment Info: System: OS: Windows 10 CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz Memory: 1.31 GB / 7.86 GB Binaries: npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5791312 "react-native-splash-screen": "^3.2.0",

Capture

mharrisweb avatar Oct 02 '19 13:10 mharrisweb

Try change to @drawable/launch_screen (without the file extension) see if that helps

vinstah avatar Oct 02 '19 18:10 vinstah

@vinstah You solution worked for me (Y)

Yandamuri avatar Nov 05 '20 14:11 Yandamuri

@vinstah Thanks man it's work :)

tusharnikam-htp avatar Nov 27 '20 11:11 tusharnikam-htp

Try change to @drawable/launch_screen (without the file extension) see if that helps

it is working..Thank you

naveenc-hyconsoft avatar Aug 19 '21 17:08 naveenc-hyconsoft

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>

Bisiedigital avatar Sep 21 '23 20:09 Bisiedigital