How To Find Issue Android Sdk 3.0 Error:(9, 5) Error: Resource Android:attr/colorerror Not Found
How to find issue to this error when I did a make I have got this error message : Error:(9, 5) error: resource android:attr/colorError not found Thing strange I've 2 build.gradle
Solution 1:
The attribute named "android:attr/colorError" is referenced by the appcompat library at API 26 and above. But the build is compiling with sdk version 22.
So, inside your app module's build.gradle, increase your compileSdkVersion to 26 to make it agree with the version of the appcompat library you are using.
In other words, right now, you have:
compileSdkVersion 22
implementation 'com.android.support:appcompat-v7:26.1.0'
But, those two versions should be in agreement. So, see what happens with:
compileSdkVersion 26
implementation 'com.android.support:appcompat-v7:26.1.0'
Solution 2:
Change compileSdkVersion 22
to compileSdkVersion 26
.
Solution 3:
Here is an update for RN>0.60. Inside your android\build.gradle, place the following inside the allprojects block to ensure subprojects have an updated compileSdkVersion.
subprojects {
afterEvaluate {
project ->if (project.hasProperty("android")) {
android {
compileSdkVersion = 28
buildToolsVersion = "28.0.3"
}
}
}
}
Post a Comment for "How To Find Issue Android Sdk 3.0 Error:(9, 5) Error: Resource Android:attr/colorerror Not Found"