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.

@react-native-community_async-storage:verifyReleaseResources FAILED

See original GitHub issue

Hey, Whenever I run ./gradlew assembleRelease I got this error:

Execution failed for task ':@react-native-community_async-storage:verifyReleaseResources'.
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  /Users/darkkingmarvel/Desktop/Jiffeo/v2/jiffeoApp/node_modules/@react-native-community/async-storage/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  /Users/darkkingmarvel/Desktop/Jiffeo/v2/jiffeoApp/node_modules/@react-native-community/async-storage/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  /Users/darkkingmarvel/Desktop/Jiffeo/v2/jiffeoApp/node_modules/@react-native-community/async-storage/android/build/intermediates/res/merged/release/values/values.xml:2714: error: resource android:attr/fontVariationSettings not found.
  /Users/darkkingmarvel/Desktop/Jiffeo/v2/jiffeoApp/node_modules/@react-native-community/async-storage/android/build/intermediates/res/merged/release/values/values.xml:2715: error: resource android:attr/ttcIndex not found.
  error: failed linking references.
  • Async Storage version:1.2.2
  • React-Native version: 0.59.2
  • Platform tested: Android

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

41reactions
manelsanzcommented, Apr 4, 2019

Finally, I solved it. Steps:

  • My Yarn version was 1.12.1, so was mandatory update it. Now I have 1.15.2
  • Remove node_modules and reinstall it using yarn install / npm install
  • Put this code on android/build.gradle:
subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion 28     // have to match with build.gradle and app/build.gradle ones
                buildToolsVersion '28.0.3'  // have to match with build.gradle and app/build.gradle ones
                variantFilter { variant ->
                    def names = variant.flavors*.name
                    // To check for a certain build type, use variant.buildType.name == "<buildType>"
                    if (names.contains("reactNative51") || names.contains("reactNative55") || names.contains("reactNative56")) {
                        // Gradle ignores any variants that satisfy the conditions above.
                        setIgnore(true)
                    }
                }
            }
        }
    }
}

Now ./gradlew assembleRelease works!

PD: don’t forgive place the keystore file to android/app 😉

16reactions
IjzerenHeincommented, Apr 1, 2019

Have you tried cleaning the Android build with /gradlew clean in the android folder? That fixed the problem for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 11 Upgrade Problem - Microsoft Community
Firstly Sorry My English. I Have Windows 10 21h1 Build 19043.1266. I don't upgrade Windows 11. I downloaded Windows 11 iso started setup....
Read more >
React Native Failed to install the App error, Android emulator ...
Provide an excellent and consistent remedy for "task -app-installDebug" failed error.The error /symptom you would get is like:1) Android ...
Read more >
JSI library compiling error during build : r/reactnative - Reddit
this is the result I get from the build process: FAILURE: Build completed with 2 failures. 1: Task failed with an exception.
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