Saeed Heidarizarei
Saeed Heidarizarei

Reputation: 8916

React Native - "@drawable/background_splash" Error

Hi I used This Article to Changing my Splash Screen for android via react native But I Got This Error: Article Link

:app:mergeDebugResources
:app:bundleDebugJsAndAssets SKIPPED
:app:processDebugManifest
:app:processDebugResources
D:\Projects 2016\Web\Android\3 Splash Project\Mohajerkade\android\app\build\inte
rmediates\res\merged\debug\values\values.xml:1365:47-74: AAPT: No resource found
 that matches the given name (at 'android:windowBackground' with value '@drawabl
e/background_splash').

Failed to generate resource table for split ''
D:\Projects 2016\Web\Android\3 Splash Project\Mohajerkade\android\app\build\inte
rmediates\res\merged\debug\values\values.xml:1365: error: Error: No resource fou
nd that matches the given name (at 'android:windowBackground' with value '@drawa
ble/background_splash').


:app:processDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

@drawable/background_splash is in Style.xml and what should I do?

Upvotes: 1

Views: 1962

Answers (2)

ahmet
ahmet

Reputation: 392

This problem may be caused by file permissions. My operating system is Win10. I ran the terminal as an administrator. After react-native run-android

Upvotes: 1

Saeed Heidarizarei
Saeed Heidarizarei

Reputation: 8916

My article was basis for android and this article focused on RN (https://medium.com/handlebar-labs/how-to-add-a-splash-screen-to-a-react-native-app-ios-and-android-30a3cec835ae)

Awnsered By spencer carli

Upvotes: 0

Related Questions