AAPT: error: resource android:attr/colorError not found


#1

I’m executing “tnr run android” on a NativeScript project but I’m getting the following errors:

C:\Users\jena.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\462a 922193e097e31bddc3aa6795fc06\res\values-v26\values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.

C:\Users\jena.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\462a 922193e097e31bddc3aa6795fc06\res\values-v26\values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.

C:\Users\jena.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\462a 922193e097e31bddc3aa6795fc06\res\values-v26\values-v26.xml:17:5-93: AAPT: error: style attribute ‘android:attr/keyboardNavigationCluster’ not found.

C:\Users\jena.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\462a 922193e097e31bddc3aa6795fc06\res\values\values.xml:252:5-69: AAPT: error: resource android:attr/fontStyle not found.

C:\Users\jena.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\462a 922193e097e31bddc3aa6795fc06\res\values\values.xml:252:5-69: AAPT: error: resource android:attr/font not found.

C:\Users\jena.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.0.2.aar\462a 922193e097e31bddc3aa6795fc06\res\values\values.xml:252:5-69: AAPT: error: resource android:attr/fontWeight not found.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:processDebugResources’.

Failed to process resources, see aapt output above for details.

I’m new to NativeScript and to Android development. What are the recommended steps to debug/fix this error?


#2

Have you installed build tools and platform apis - v26 or later?