Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run-android failed: Android resource linking failed #395

Open
arlovip opened this issue May 29, 2019 · 4 comments
Open

Run-android failed: Android resource linking failed #395

arlovip opened this issue May 29, 2019 · 4 comments

Comments

@arlovip
Copy link

arlovip commented May 29, 2019

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-androidlaunch_screen.xml not found? Anybody knows that? thanks a lot.

@YanTsinovoy
Copy link

I had same issue.

It helped me => #46

@mpradas23
Copy link

same issue here!

@pengxiaohua575527452
Copy link

add some "launch_screen.png" file to drawable-*dpi folder

@sraza295
Copy link

sraza295 commented Dec 2, 2023

add some "launch_screen.png" file to drawable-*dpi folder

Thank you so much. this was worked for me. You saved my day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants