React Native - “@drawable/background_splash”错误

React Native - "@drawable/background_splash" Error

您好,我使用这篇文章通过本机反应为 android 更改了启动画面,但我遇到了这个错误:Article Link

:app:mergeDebugResources
:app:bundleDebugJsAndAssets SKIPPED
:app:processDebugManifest
:app:processDebugResources
D:\Projects 2016\Web\Android 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 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 在 Style.xml,我该怎么办?

我的文章是 android 的基础,这篇文章的重点是 RN (https://medium.com/handlebar-labs/how-to-add-a-splash-screen-to-a-react-native-app-ios-and-android-30a3cec835ae)

由 spencer carli 发表

这个问题可能是由文件权限引起的。我的操作系统是Win10。我运行 以管理员身份终端。 react-native run-android

之后