Calvin-Huang / react-native-device-brightness

Screen brightness adjustment tool for ReactNative iOS and Android.
MIT License
49 stars 57 forks source link

Build failed: Task :react-native-device-brightness:verifyReleaseResources FAILED #27

Open nurmantg opened 4 years ago

nurmantg commented 4 years ago

Hello, when I try to build release apk I get these errors how I fix it?

`* What went wrong: Execution failed for task ':react-native-device-brightness:verifyReleaseResources'.

1 exception was raised by workers: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found. error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:7: error: resource android:attr/colorError not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:11: error: resource android:attr/colorError not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values\values.xml:2734: error: resource android:attr/fontStyle not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values\values.xml:2735: error: resource android:attr/font not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values\values.xml:2736: error: resource android:attr/fontWeight not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values\values.xml:2737: error: resource android:attr/fontVariationSettings not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values\values.xml:2738: error: resource android:attr/ttcIndex not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values\values.xml:2902: error: resource android:attr/startX not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values\values.xml:2905: error: resource android:attr/startY not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values\values.xml:2908: error: resource android:attr/endX not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values\values.xml:2911: error: resource android:attr/endY not found. D:\react\Smarts\node_modules\react-native-device-brightness\android\build\intermediates\res\merged\release\values\values.xml:2919: error: resource android:attr/offset not found. error: failed linking references.`

Thank you

HonzaJiran commented 4 years ago

yarn jetify.

tolgaberk commented 3 years ago

@HonzaJiran i tried but it didn't work? i also cleared all the caches of gradle and my project. do you have any suggestion?

BillDelvin commented 1 year ago

I'm facing same issue, is there any recommendation solution ?

vasuchawla commented 1 year ago

anyone?