cesardeazevedo / react-native-bottom-sheet-behavior

react-native wrapper for android BottomSheetBehavior
MIT License
1.16k stars 114 forks source link

Can't Build React-Native App #54

Open MehrdadKhnzd opened 5 years ago

MehrdadKhnzd commented 5 years ago

I can run project on android (react-native run-android), but when I want to build the project (.\gradlew.bat assembleRelease), it gives me this error:

Execution failed for task ':react-native-bottom-sheet-behavior:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  C:\Users\Mehrdad\Desktop\Sample\Sample\node_modules\react-native-bottom-sheet-behavior\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  C:\Users\Mehrdad\Desktop\Sample\Sample\node_modules\react-native-bottom-sheet-behavior\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  C:\Users\Mehrdad\Desktop\Sample\Sample\node_modules\react-native-bottom-sheet-behavior\android\build\intermediates\res\merged\release\values\values.xml:2972: error: resource android:attr/fontVariationSettings not found.
  C:\Users\Mehrdad\Desktop\Sample\Sample\node_modules\react-native-bottom-sheet-behavior\android\build\intermediates\res\merged\release\values\values.xml:2973: error: resource android:attr/ttcIndex not found.
  error: failed linking references.

What can I do?

cesardeazevedo commented 5 years ago

Can you post your app/build.gradle file?