1齐遵、
The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.appcompat:appcompat:1.4.0-beta01.
AAR metadata file: /home/gill/.gradle/caches/transforms-2/files-2.1/6b7b3dc988a209e4a380a8b540e8b73d/appcompat-1.4.0-beta01/META-INF/com/android/build/gradle/aar-metadata.properties.
解決:
implementation 'androidx.appcompat:appcompat:+'
不要拉取最新版本爷抓,制定版本
implementation 'androidx.appcompat:appcompat:1.2.0'
2输钩、
問題:
ERROR:/home/gill/.gradle/caches/transforms-2/files-2.1/1ef9a9325d043aaa40741b835e67fff6/material-1.5.0-alpha04/res/values-v31/values-v31.xml:3:5-94: AAPT: error: resource android:color/system_neutral1_1000 not found.
解決:
implementation 'com.google.android.material:material:+'
指定版本
material-1.5.0-alpha04