Alexey Korepanov
by Alexey Korepanov
~1 min read

Categories

Tags

If you get AAPT: error: resource android:attr/colorError not found in your React Native Android build, add the following code into your android/build.gradle, allprojects section:

subprojects {
    afterEvaluate {
        project ->
            if (project.hasProperty("android")) {
                android {
                    compileSdkVersion = 28
                    buildToolsVersion = "28.0.3"
                }
            }
    }
}

This code will force all packages in your project to use compile SDK and build tools version 28.