ptomasroos/react-native-idfa

Android build exception

drop-george opened this issue · 1 comments

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
    }
...
}

Thanks for this! I wont work on react-native until January sadly, feel free to send a PR !