Hello Guys, How are you all? Hope You all Are Fine. Today I Just trying to build this project And I am facing following error AAPT: error: resource android:color/system_neutral1_1000 not found in kotlin. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How AAPT: error: resource android:color/system_neutral1_1000 not found Error Occurs?
Today I Just trying to build this project And I am facing following error.
ERROR:C:\Users\ssc.gradle\caches\transforms-2\files-2.1\66e9dd10963e7a2704a4a2116f19e6fb\material-1.5.0-alpha03\res\values-v31\values-v31.xml:3:5-94: AAPT: error: resource android:color/system_neutral1_1000 not found.)
How To Solve AAPT: error: resource android:color/system_neutral1_1000 not found Error ?
How To Solve AAPT: error: resource android:color/system_neutral1_1000 not found Error?
To Solve AAPT: error: resource android:color/system_neutral1_1000 not found Error Here this problem is occurs while you are using material:1.5.0-alpha03 So that just use material:1.5.0-alpha02. second solution is If you still want to use material:1.5.0-alpha03 then As described in the release notes The version 1.5.0-alpha03 introduces the new Material 3 themes and material:1.5.0-alpha03 library requires compile SDK 31 starting from 1.5.0-alpha03 So That Make sure to update your app’s compileSdkVersion to 31 when using a fresh version of the library. Or downgrade to 1.4.0 / 1.5.0-alpha02.
AAPT: error: resource android:color/system_neutral1_1000 not found
To Solve AAPT: error: resource android:color/system_neutral1_1000 not found Error Here this problem is occurs while you are using material:1.5.0-alpha03 So that just use material:1.5.0-alpha02. second solution is If you still want to use material:1.5.0-alpha03 then As described in the release notes The version 1.5.0-alpha03 introduces the new Material 3 themes and material:1.5.0-alpha03 library requires compile SDK 31 starting from 1.5.0-alpha03 So That Make sure to update your app’s compileSdkVersion to 31 when using a fresh version of the library. Or downgrade to 1.4.0 / 1.5.0-alpha02.
Solution 1: Use material:1.5.0-alpha02
Here this problem is occurs while you are using material:1.5.0-alpha03 So that just use material:1.5.0-alpha02.
Just Remove this line.
implementation 'com.google.android.material:material:1.5.0-alpha03'
And Replace with
implementation 'com.google.android.material:material:1.5.0-alpha02'
Solution 2: update app’s compileSdkVersion to 31
If you still want to use material:1.5.0-alpha03 then As described in the release notes The version 1.5.0-alpha03 introduces the new Material 3 themes and material:1.5.0-alpha03 library requires compile SDK 31 starting from 1.5.0-alpha03
So That Make sure to update your app’s compileSdkVersion
to 31 when using a fresh version of the library. Or downgrade to 1.4.0
/ 1.5.0-alpha02
.
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read