Skip to content

com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed #243

Closed
@mrkpatchaa

Description

@mrkpatchaa

Issue

Android: gradle release build fails in verifyReleaseResources step.

Stack trace :

> Task :react-native-app-auth:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-app-auth:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  Output:  /Users/Devs/trash/ReactNativeTestAppAuth/node_modules/react-native-app-auth/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  /Users/Devs/trash/ReactNativeTestAppAuth/node_modules/react-native-app-auth/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  /Users/Devs/trash/ReactNativeTestAppAuth/node_modules/react-native-app-auth/android/build/intermediates/res/merged/release/values/values.xml:961: error: resource android:attr/fontVariationSettings not found.
  /Users/Devs/trash/ReactNativeTestAppAuth/node_modules/react-native-app-auth/android/build/intermediates/res/merged/release/values/values.xml:962: error: resource android:attr/ttcIndex not found.
  error: failed linking references.

Test repository : https://github.com/rmkpatchaa/ReactNativeTestAppAuth

How to reproduce :

npm install
cd android
./gradlew assembleRelease

Environment

  • Your Identity Provider: e.g. IdentityServer 4 / Okta / Azure
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • Are you using Expo, e.g. ExpoKit?
    • No
    • Yes, I've not ejected
    • Yes, but I have ejected to ExpoKit
    • Yes, but I have ejected to vanilla React Native

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions