prscX / react-native-bottom-action-sheet

React Native: Native Bottom Action Sheet
Apache License 2.0
633 stars 48 forks source link

AndroidX build error #58

Closed ehynds closed 4 years ago

ehynds commented 4 years ago

Getting this build error after enabling Android X support:

> Task :react-native-bottom-action-sheet:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-bottom-action-sheet:verifyReleaseResources'.
> 1 exception was raised by workers:
  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  /node_modules/react-native-bottom-action-sheet/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  /node_modules/react-native-bottom-action-sheet/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  /node_modules/react-native-bottom-action-sheet/android/build/intermediates/res/merged/release/values/values.xml:4034: error: resource android:attr/fontVariationSettings not found.
  /node_modules/react-native-bottom-action-sheet/android/build/intermediates/res/merged/release/values/values.xml:4035: error: resource android:attr/ttcIndex not found.
  error: failed linking references.
ehynds commented 4 years ago

This comment solved it for me: https://github.com/facebook/react-native/issues/25371#issuecomment-509803439