使用Android Studio創(chuàng)建程序時(shí)報(bào)錯(cuò)
checkDebugAarMetadata:文章來源:http://www.zghlxwxcb.cn/news/detail-599394.html
6 issues were found when checking AAR metadata:
1. Dependency 'androidx.appcompat:appcompat-resources:1.6.1' requires libraries and applications that
depend on it to compile against version 33 or later of the
Android APIs.
:app is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion
of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which
allows newer APIs to be used) can be done separately from updating
targetSdkVersion (which opts the app in to new runtime behavior) and
minSdkVersion (which determines which devices the app can be installed
on).
2. Dependency 'androidx.appcompat:appcompat:1.6.1' requires libraries and applications that
depend on it to compile against version 33 or later of the
Android APIs.
:app is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion
of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which
allows newer APIs to be used) can be done separately from updating
targetSdkVersion (which opts the app in to new runtime behavior) and
minSdkVersion (which determines which devices the app can be installed
on).
3. Dependency 'androidx.activity:activity:1.6.0' requires libraries and applications that
depend on it to compile against version 33 or later of the
Android APIs.
:app is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion
of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which
allows newer APIs to be used) can be done separately from updating
targetSdkVersion (which opts the app in to new runtime behavior) and
minSdkVersion (which determines which devices the app can be installed
on).
4. Dependency 'androidx.core:core-ktx:1.9.0' requires libraries and applications that
depend on it to compile against version 33 or later of the
Android APIs.
:app is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion
of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which
allows newer APIs to be used) can be done separately from updating
targetSdkVersion (which opts the app in to new runtime behavior) and
minSdkVersion (which determines which devices the app can be installed
on).
5. Dependency 'androidx.core:core:1.9.0' requires libraries and applications that
depend on it to compile against version 33 or later of the
Android APIs.
:app is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion
of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which
allows newer APIs to be used) can be done separately from updating
targetSdkVersion (which opts the app in to new runtime behavior) and
minSdkVersion (which determines which devices the app can be installed
on).
6. Dependency 'androidx.annotation:annotation-experimental:1.3.0' requires libraries and applications that
depend on it to compile against version 33 or later of the
Android APIs.
:app is currently compiled against android-32.
Recommended action: Update this project to use a newer compileSdkVersion
of at least 33, for example 33.
Note that updating a library or application's compileSdkVersion (which
allows newer APIs to be used) can be done separately from updating
targetSdkVersion (which opts the app in to new runtime behavior) and
minSdkVersion (which determines which devices the app can be installed
on).
在檢查AAR元數(shù)據(jù)時(shí)發(fā)現(xiàn)6個(gè)問題:
1. 依賴項(xiàng)“androidx.appcompat:appcompat-resources:1.6.1”要求庫(kù)和應(yīng)用程序
的版本33或更高版本依賴它進(jìn)行編譯
Android api。
:app目前針對(duì)android-32進(jìn)行編譯。
建議操作:更新此項(xiàng)目以使用更新的compileSdkVersion
至少33個(gè),例如33個(gè)。
請(qǐng)注意,更新庫(kù)或應(yīng)用程序的compileSdkVersion(其中
允許使用更新的api)可以與更新分開進(jìn)行
targetSdkVersion(選擇應(yīng)用進(jìn)入新的運(yùn)行時(shí)行為)和
minSdkVersion(決定哪些設(shè)備可以安裝應(yīng)用程序)
上)。
2. 依賴項(xiàng)“androidx.appcompat:appcompat:1.6.1”要求庫(kù)和應(yīng)用程序
的版本33或更高版本依賴它進(jìn)行編譯
Android api。
:app目前針對(duì)android-32進(jìn)行編譯。
建議操作:更新此項(xiàng)目以使用更新的compileSdkVersion
至少33個(gè),例如33個(gè)。
請(qǐng)注意,更新庫(kù)或應(yīng)用程序的compileSdkVersion(其中
允許使用更新的api)可以與更新分開進(jìn)行
targetSdkVersion(選擇應(yīng)用進(jìn)入新的運(yùn)行時(shí)行為)和
minSdkVersion(決定哪些設(shè)備可以安裝應(yīng)用程序)
上)。
3.依賴項(xiàng)“androidx.activity:activity:1.6.0”要求庫(kù)和應(yīng)用程序
的版本33或更高版本依賴它進(jìn)行編譯
Android api。
:app目前針對(duì)android-32進(jìn)行編譯。
建議操作:更新此項(xiàng)目以使用更新的compileSdkVersion
至少33個(gè),例如33個(gè)。
請(qǐng)注意,更新庫(kù)或應(yīng)用程序的compileSdkVersion(其中
允許使用更新的api)可以與更新分開進(jìn)行
targetSdkVersion(選擇應(yīng)用進(jìn)入新的運(yùn)行時(shí)行為)和
minSdkVersion(決定哪些設(shè)備可以安裝應(yīng)用程序)
上)。
4. 依賴項(xiàng)“androidx.core:core-ktx:1.9.0”需要的庫(kù)和應(yīng)用程序
的版本33或更高版本依賴它進(jìn)行編譯
Android api。
:app目前針對(duì)android-32進(jìn)行編譯。
建議操作:更新此項(xiàng)目以使用更新的compileSdkVersion
至少33個(gè),例如33個(gè)。
請(qǐng)注意,更新庫(kù)或應(yīng)用程序的compileSdkVersion(其中
允許使用更新的api)可以與更新分開進(jìn)行
targetSdkVersion(選擇應(yīng)用進(jìn)入新的運(yùn)行時(shí)行為)和
minSdkVersion(決定哪些設(shè)備可以安裝應(yīng)用程序)
上)。
5. 依賴項(xiàng)“androidx.core:core:1.9.0”要求庫(kù)和應(yīng)用程序
的版本33或更高版本依賴它進(jìn)行編譯
Android api。
:app目前針對(duì)android-32進(jìn)行編譯。
建議操作:更新此項(xiàng)目以使用更新的compileSdkVersion
至少33個(gè),例如33個(gè)。
請(qǐng)注意,更新庫(kù)或應(yīng)用程序的compileSdkVersion(其中
允許使用更新的api)可以與更新分開進(jìn)行
targetSdkVersion(選擇應(yīng)用進(jìn)入新的運(yùn)行時(shí)行為)和
minSdkVersion(決定哪些設(shè)備可以安裝應(yīng)用程序)
上)。
6. 依賴項(xiàng)“androidx.annotation:annotation-experimental:1.3.0”要求庫(kù)和應(yīng)用程序
的版本33或更高版本依賴它進(jìn)行編譯
Android api。
:app目前針對(duì)android-32進(jìn)行編譯。
建議操作:更新此項(xiàng)目以使用更新的compileSdkVersion
至少33個(gè),例如33個(gè)。
請(qǐng)注意,更新庫(kù)或應(yīng)用程序的compileSdkVersion(其中
允許使用更新的api)可以與更新分開進(jìn)行
targetSdkVersion(選擇應(yīng)用進(jìn)入新的運(yùn)行時(shí)行為)和
minSdkVersion(決定哪些設(shè)備可以安裝應(yīng)用程序)
上)。
點(diǎn)擊文件>項(xiàng)目結(jié)構(gòu)>modules修改CompileSdk版本為33即可正常運(yùn)行
看著錯(cuò)誤提示好像是我的sdk編譯版本有問題,但前幾天用32還好好的,莫名其妙今天創(chuàng)建空項(xiàng)目程序都要用33實(shí)在不能理解,好在也就花了半小時(shí),android studio的bug太玄學(xué)了文章來源地址http://www.zghlxwxcb.cn/news/detail-599394.html
到了這里,關(guān)于奇怪的AndroidStudio報(bào)錯(cuò)--checkDebugAarMetadata--修改SDK版本為33成功修復(fù)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!