Skip to content

Android build exception #36

Description

@drop-george

I'm getting a build error when using react-native-idfa. I'm on version ^2.0.0, and also tried out ^4.1.0 without any luck.

Build error details:

> Task :@ptomasroos/react-native-idfa:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':@ptomasroos/react-native-idfa:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  ...path/node_modules/@ptomasroos/react-native-idfa/android/build/intermediates/res/merged/release/values/values.xml:1980: error: resource android:attr/fontStyle not found.
  ...path/node_modules/@ptomasroos/react-native-idfa/android/build/intermediates/res/merged/release/values/values.xml:1981: error: resource android:attr/font not found.
  ...path/node_modules/@ptomasroos/react-native-idfa/android/build/intermediates/res/merged/release/values/values.xml:1982: error: resource android:attr/fontWeight not found.
  ...path/node_modules/@ptomasroos/react-native-idfa/android/build/intermediates/res/merged/release/values/values.xml:1983: error: resource android:attr/fontVariationSettings not found.
  ...path/node_modules/@ptomasroos/react-native-idfa/android/build/intermediates/res/merged/release/values/values.xml:1984: error: resource android:attr/ttcIndex not found.
  error: failed linking references.

This is what my build.gradle looks like:

android {
    compileSdkVersion 28

    defaultConfig {
        ...
        minSdkVersion 19
        targetSdkVersion 28
        versionCode 52
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
        multiDexEnabled true
    }
...
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions