react-native-simple-download-manager:verifyReleaseResources FAILED
MayarAhmed opened this issue · 1 comments
this error is shown when i tried to
./gradlew assembleRelease
and removed
drawable-hdpi
drawable-mdpi
drawable-xhdpi
drawable-xxhdpi
drawable-xxxhdpi
from android/app/src/main/res
here is the exact error
Execution failed for task ':react-native-simple-download-manager: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.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:7: error: resource android:attr/colorError not found.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:11:
error: resource android:attr/colorError not found.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values-v26\values-v26.xml:15:
error: style attribute 'android:attr/keyboardNavigationCluster' not found.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:11:
error: resource android:attr/dialogCornerRadius not found.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values\values.xml:2711: error: resource android:attr/fontStyle not found.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values\values.xml:2712: error: resource android:attr/font not found.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values\values.xml:2713: error: resource android:attr/fontWeight not found.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values\values.xml:2714: error: resource android:attr/fontVariationSettings not found.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values\values.xml:2715: error: resource android:attr/ttcIndex not found.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values\values.xml:2796: error: resource android:attr/startX not found.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values\values.xml:2799: error: resource android:attr/startY not found.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values\values.xml:2802: error: resource android:attr/endX not found.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values\values.xml:2805: error: resource android:attr/endY not found.
E:\test\onlinepd-app\node_modules\react-native-simple-download-manager\android\build\intermediates\res\merged\release\values\values.xml:2813: error: resource android:attr/offset not found.
error: failed linking references.
could you advice why this happen ??
Same issue while building for me too.
@MayarAhmed were you able to solve this?
Edit:
Add this in android/build.gradle solved the issue
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
}
}
}
}