Aapt: error: resource android:color/system_neutral1_1000 not found.

score:2

Not quite sure if this is the solution (it worked for me) but updating the compileSdk and targerSdk to 31 alongside with updating these libraries solved the error in my case:

implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'com.google.android.material:material:1.5.0'

score:7

I ran into this error as well, when trying to target API 30 in a Java project. I had tried to downgrade the appcompat dependency only and got these errors. Turns out you need to downgrade the material dependency as well.

To target API 30, you need to downgrade both androidx.appcompat:appcompat and com.google.android.material:material to older versions.

Change the versions from:

implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'

To:

implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'

score:11

I've meet this error, and it's solved. Change or downgrade your dependencies should solve this issue. If you meet this error from this link, I suggest you should change this both, from :

implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'com.google.android.material:material:1.5.0'

to :

implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.4.0'

then, run your app again. I think this method works. This usually happen if you create your new project, but you didn't notice this error, when you trying to run your app.

score:21

The problem is in the following line:

implementation 'com.google.android.material:material:1.5.0-alpha03'

I used this and got the same error. Replacing it with the following line fixed the problem:

implementation 'com.google.android.material:material:1.5.0-alpha02')


Related Query

  • No get method providing array access - error when assigning new values ​to the matrix
  • Retain observable from error and return all values
  • Chip Drawable giving error in Material UI 3 Android Kotlin
  • Error getting the values of all fields of a data class
  • How to get am/pm values from google material time picker in kotlin
  • Failed to compile values file. ERROR : app:mergeDebugResources FAILED
  • How can I resolve the error "The minCompileSdk (31) specified in a dependency's AAR metadata" in native Java or Kotlin?
  • Kotlin Error : Could not find org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7
  • Error : Program type already present: android.support.design.widget.CoordinatorLayout$Behavior
  • How to return multiple values from a function in Kotlin like we do in Swift?
  • Not able to "findViewById" in Kotlin. Getting error "Type inference failed"
  • How to sort based on/compare multiple values in Kotlin?
  • How to resolve error "Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jre7..." when building in Android Studio
  • Upgrading Android kotlin version to 1.5.0 throwing error message on build
  • compileKotlin block in build.gradle file throws error "Could not find method compileKotlin() for arguments [...]"
  • How to overcome "same JVM signature" error when implementing a Java interface?
  • How to access values from strings.xml
  • ERROR : error.NonExistentClass Kotlin In multi module Dagger project
  • Kotlin - how to find number of repeated values in a list?
  • Kotlin when with multiple values not working when value is an android view
  • Updated to Android Studio 3.0. Getting a "Kotlin not configured" error
  • Iterate enum values using values() and valueOf in kotlin
  • How to resolve the error "LifecycleOwners must call register before they are STARTED"
  • Force compilation error with sealed classes
  • Overload Resolution Ambiguity error in kotlin
  • kotlin.NotImplementedError: An operation is not implemented: not implemented Error from ImageButton Click
  • java.lang.IllegalStateException: SimpleTypeImpl should not be created for error type
  • Android How to set multiple gravity values programmatically in Kotlin?
  • "Extension with name 'android' does not exist" error when adding Kotlin to Android project
  • Kotlin file changes result in Redeclaration error

More Query from same tag

  • Log Stacktrace to FirebaseDatabase in UncaughtExceptionHandler, problem calling default uncaughtException method
  • Firebase: Catch event when data actually reach Firebase Database server
  • Image Asset in Android Studio become weird
  • Why can't I use the var mSelectedItem in inner class ViewHolder?
  • How to return from a top level function while inside an inner function in kotlin?
  • Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type AuthResult?
  • Spring R2DBC: How to replace deprecated DatabaseClient.as(…) and handle custom types/converters for jsonb field
  • Material Swipe To Dismiss in Jetpack Compose with a Column instead of a LazyColumn
  • Start another app by link android
  • What is the recommended way to group dependencies of the same type?
  • Flutter app won't run on device and show the warning/error
  • Android Kotlin: Illegal State Exception when checking if MediaPlayer is playing
  • AboutToQuit signal/event in Android
  • Dagger2 Qualifier not working with Kotlin?
  • Why wouldn't I make every eligable Kotlin class a data class?
  • IntelliJ IDEA using JavaScript "version" of dependency specified in Gradle build file?
  • Why does this Kotlin parameter type with an upper bound need a cast?
  • Kotlin basics: how to add or set an element of a Map?
  • How to fix ClassNotFoundException in release build for a fragment in a Dynamic Feature Module using Navigation Architecture Component?
  • What's the difference between !! and ? in Kotlin?
  • How do I set and read properties in a SpringBoot application using Kotlin?
  • is it possible to delete all files from photo/video directory on android programmatically?
  • Deserialize JSON to Different types with jacksonObjectMapper
  • Why am I getting a android.os.TransactionTooLargeException in my Android App written in Kotlin/rxJava when I am exiting the app? (onExit/onPause)?
  • Kotlin : Differences between a function inside a class and inside a .kt file outside the class
  • how to show back press button in a fragment
  • Check if multiple strings are empty or not without using if and when
  • Android UI Elements Not Appearing, Despite Showing in XML Design View
  • How to convert map and nested map to string and vise versa in Kotlin?
  • Why companion object for newStartIntent in Android+Kotlin?