Run-android failed: Android resource linking failed
Run react-native info
React Native Environment Info: System: OS: macOS 10.14.4 CPU: (4) x64 Intel(R) Core(TM) i3-8100B CPU @ 3.60GHz Memory: 31.29 MB / 8.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 11.5.0 - /usr/local/bin/node Yarn: 1.12.3 - /usr/local/bin/yarn npm: 6.4.1 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2 Android SDK: API Levels: 23, 27, 28 Build Tools: 23.0.1, 26.0.1, 27.0.3, 28.0.2, 28.0.3 System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom_64, android-27 | Intel x86 Atom_64, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom IDEs: Android Studio: 3.3 AI-182.5107.16.33.5314842 Xcode: 10.2/10E125 - /usr/bin/xcodebuild npmPackages: react: 16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728 react-native: 0.57.4 => 0.57.4 npmGlobalPackages: react-native-cli: 2.0.1 react-native-update-cli: 0.1.0
What react-native-splash-screen version are you using?
- "react-native-splash-screen": "^3.2.0",
What platform does your issue occur on? (Android/iOS/Both)
- Android
Describe your issue as precisely as possible :
-
follow all steps acording to READ.md
-
react-native run-android
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
Output: /Users/langke/Developer/ems-app-native-view/wanke/android/app/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml:69: error: resource xml/launch_screen (aka com.wanke:xml/launch_screen) not found.
error: failed processing manifest.
launch_screen.xml
<?xml version="1.0" encoding="utf-8"?>
<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="@mipmap/launch_screen"
android:scaleType="centerCrop"
/>
</RelativeLayout>
colors.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="primary_dark">#000000</color>
</resources>
when react-native run-android, launch_screen.xml not found? Anybody knows that? thanks a lot.
I had same issue.
It helped me => https://github.com/crazycodeboy/react-native-splash-screen/issues/46
same issue here!
add some "launch_screen.png" file to drawable-*dpi folder
add some "launch_screen.png" file to drawable-*dpi folder
Thank you so much. this was worked for me. You saved my day