React-native-splash-screen: drawable/launch_screen.png not found.

Created on 2 Oct 2019  Â·  3Comments  Â·  Source: crazycodeboy/react-native-splash-screen

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

How can I fix the error?

\androidapp\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

Most helpful comment

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

All 3 comments

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

@vinstah You solution worked for me (Y)

@vinstah Thanks man it's work :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

summerPsyche picture summerPsyche  Â·  5Comments

arnsa picture arnsa  Â·  5Comments

js1121302139 picture js1121302139  Â·  5Comments

salauddinShaikh picture salauddinShaikh  Â·  3Comments

Shivani12345 picture Shivani12345  Â·  5Comments