Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

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

Open
nurmantg opened this issue Oct 3, 2019 · 4 comments

Comments

@nurmantg
Copy link

nurmantg commented Oct 3, 2019

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
Copy link

yarn jetify.

@tolgaberk
Copy link

@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
Copy link

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

@vasuchawla
Copy link

anyone?

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

No branches or pull requests

5 participants