question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ERROR] Build faild after update react native and android sdk build tools

See original GitHub issue

I got this error after react-native run-android after update react-native and android sdk build tools with this error:

Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:15:7-34
        is also present at [:react-native-splash-screen] AndroidManifest.xml:12:9-35 value=(true).
        Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:11:5-33:19 to override.

Can you guide me to fix this?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:8
  • Comments:15

github_iconTop GitHub Comments

93reactions
caroaguilarcommented, Apr 8, 2018

Apply the suggestion from the logs: In your Manifest, in the <aplication> tag, right under android:theme... add tools:replace="android:allowBackup" also make sure to add in the <manifest> tag right under xmlns:android... add the following xmlns:tools="http://schemas.android.com/tools"

Should be something like:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.yourpackage.name">

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

    <application
      android:name="com.yourpackage.name.MainApplication"
      android:label="@string/app_name"
      android:icon="@mipmap/ic_launcher"
      android:allowBackup="false"
      android:theme="@style/AppTheme"
      tools:replace="android:allowBackup">
   .....

Adding this line what is telling the compiler is to ignore the attribute from the library and listen to the one in your app.

16reactions
joustavacommented, May 17, 2018

@altaf4web I assume you forgot to add the

xmlns:tools=“http://schemas.android.com/tools

in your manifest root element

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why my React Native Android App build failing? [closed]
Images: A) don't allow us to copy-&-paste the code/errors/data for testing; B) don't permit searching based on the code/error/data contents; and ...
Read more >
React Native on Android failed to find Build Tools-Reactjs
I had this problem trying to build at the command line following react native's documentation. I resolved this problem by opening the project...
Read more >
Android App build error - I have no idea what to do
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with...
Read more >
Known issues with Android Studio and Android Gradle Plugin
To fix this issue, upgrade your Android 11 emulator to version 9 or higher by navigating to Tools > SDK Manager. In the...
Read more >
Upgrading to new versions - React Native
Upgrading to new versions of React Native will give you access to more APIs, views, developer tools and other goodies. Upgrading requires a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found