您好我用這篇文章,以改變我的啓動畫面使用Android原生的反應,但我得到這個錯誤:Article Link陣營原住民 - 「@繪製/ background_splash」錯誤
: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
是Style.xml什麼我應該怎麼做?
您是否創建了background_splash.xml文件?那個錯誤讓我覺得你沒有。實際上,我已經有一篇關於向React Native添加啓動畫面的分步文章(您鏈接的文章是Android的基礎 - 我只是將它重點放在了RN上)。 https://medium.com/handlebar-labs/how-to-add-a-splash-screen-to-a-react-native-app-ios-and-android-30a3cec835ae –
解決。感謝您的驚人教程。 @ spencer-carli –
@ spencer-carli,我有白色頁面顯示在應用程序之前的閃屏後,我該怎麼辦? –