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.

Android resource linking failed on RN 0.58

See original GitHub issue
    buildToolsVersion = "28.0.3"
    minSdkVersion = 16
    compileSdkVersion = 28
    targetSdkVersion = 27
    supportLibVersion = "27.1.1"
Execution failed for task ':react-native-dialogs:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  Output:  /Users/stereodenis/work/busfor-app/node_modules/react-native-dialogs/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  /Users/stereodenis/work/busfor-app/node_modules/react-native-dialogs/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  /Users/stereodenis/work/busfor-app/node_modules/react-native-dialogs/android/build/intermediates/res/merged/release/values/values.xml:1012: error: resource android:attr/fontVariationSettings not found.
  /Users/stereodenis/work/busfor-app/node_modules/react-native-dialogs/android/build/intermediates/res/merged/release/values/values.xml:1013: error: resource android:attr/ttcIndex not found.
  error: failed linking references.
  
  Command: /Users/stereodenis/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/04da7acbe4e6c290598770fad4d05b99/aapt2-3.2.1-4818971-osx/aapt2 link -I\
          /Users/stereodenis/Library/Android/sdk/platforms/android-26/android.jar\
          --manifest\
...
Daemon:  AAPT2 aapt2-3.2.1-4818971-osx Daemon #0

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

2reactions
stereodeniscommented, Feb 20, 2019

it starts working with this:

subprojects {
...
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.android.support'
                    && !details.requested.name.contains('multidex') ) {
                details.useVersion "27.1.1"
            }
        }
    }
}

So, with version 28.0.0 its not working

0reactions
niel98commented, Aug 9, 2020

it starts working with this:

subprojects {
...
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.android.support'
                    && !details.requested.name.contains('multidex') ) {
                details.useVersion "27.1.1"
            }
        }
    }
}

So, with version 28.0.0 its not working

u save my day… thx bro…

Where can I locate the file to downgrade the version in my project folder?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android resource linking failed on RN 0.58 · Issue #53 - GitHub
What went wrong: Execution failed for task ':pushwoosh-react-native-plugin:verifyReleaseResources'. > java.util.concurrent.
Read more >
Developers - Android resource linking failed on RN 0.58 -
Android resource linking failed on RN 0.58. Pushwoosh. 19 February 2019 Posted by Denis. buildToolsVersion = "28.0.2" minSdkVersion = 16
Read more >
Android resource linking failed after running react-native run ...
A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction Android resource ...
Read more >
[Solved]-Resource linking fails on lStar-React Native
Coding example for the question Resource linking fails on lStar-React Native. ... target=android-28 android.library.reference.1=CordovaLib ...
Read more >
What is the Android resource linking failed error? - Educative.io
The Android resource linking failed error can also occur if you have an error in any of your XML resources. RELATED TAGS. general....
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