Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build exception #36

Open
drop-george opened this issue Jun 25, 2019 · 1 comment
Open

Android build exception #36

drop-george opened this issue Jun 25, 2019 · 1 comment

Comments

@drop-george
Copy link

drop-george commented Jun 25, 2019

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
    }
...
}
@ptomasroos
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants