Solve Problem/Troubleshooting

[React Native / Android] Task :~~library~~:verifyReleaseResources FAILED

안다희 2020. 11. 18. 18:36
728x90

1. 버그

> Task :react-native-disable-battery-optimizations-android:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-disable-battery-optimizations-android: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.

 

2. 해결법

github.com/luggit/react-native-config/issues/330#issuecomment-494915023

 

Task :react-native-config:verifyReleaseResources FAILED · Issue #330 · luggit/react-native-config

I get the following exception when building with assembleRelease. This is version 0.11.7 with react-native 0.58.3. > Task :react-native-config:verifyReleaseResources FAILED Shutdown finished in ...

github.com

./gradlew app:assembleRelease
출처: https://mingos-habitat.tistory.com/34 [밍고의서식지:티스토리]