使用Android Studio创建程序时报错
checkDebugAarMetadata:文章来源:https://www.toymoban.com/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元数据时发现6个问题:
1. 依赖项“androidx.appcompat:appcompat-resources:1.6.1”要求库和应用程序
的版本33或更高版本依赖它进行编译
Android api。
:app目前针对android-32进行编译。
建议操作:更新此项目以使用更新的compileSdkVersion
至少33个,例如33个。
请注意,更新库或应用程序的compileSdkVersion(其中
允许使用更新的api)可以与更新分开进行
targetSdkVersion(选择应用进入新的运行时行为)和
minSdkVersion(决定哪些设备可以安装应用程序)
上)。
2. 依赖项“androidx.appcompat:appcompat:1.6.1”要求库和应用程序
的版本33或更高版本依赖它进行编译
Android api。
:app目前针对android-32进行编译。
建议操作:更新此项目以使用更新的compileSdkVersion
至少33个,例如33个。
请注意,更新库或应用程序的compileSdkVersion(其中
允许使用更新的api)可以与更新分开进行
targetSdkVersion(选择应用进入新的运行时行为)和
minSdkVersion(决定哪些设备可以安装应用程序)
上)。
3.依赖项“androidx.activity:activity:1.6.0”要求库和应用程序
的版本33或更高版本依赖它进行编译
Android api。
:app目前针对android-32进行编译。
建议操作:更新此项目以使用更新的compileSdkVersion
至少33个,例如33个。
请注意,更新库或应用程序的compileSdkVersion(其中
允许使用更新的api)可以与更新分开进行
targetSdkVersion(选择应用进入新的运行时行为)和
minSdkVersion(决定哪些设备可以安装应用程序)
上)。
4. 依赖项“androidx.core:core-ktx:1.9.0”需要的库和应用程序
的版本33或更高版本依赖它进行编译
Android api。
:app目前针对android-32进行编译。
建议操作:更新此项目以使用更新的compileSdkVersion
至少33个,例如33个。
请注意,更新库或应用程序的compileSdkVersion(其中
允许使用更新的api)可以与更新分开进行
targetSdkVersion(选择应用进入新的运行时行为)和
minSdkVersion(决定哪些设备可以安装应用程序)
上)。
5. 依赖项“androidx.core:core:1.9.0”要求库和应用程序
的版本33或更高版本依赖它进行编译
Android api。
:app目前针对android-32进行编译。
建议操作:更新此项目以使用更新的compileSdkVersion
至少33个,例如33个。
请注意,更新库或应用程序的compileSdkVersion(其中
允许使用更新的api)可以与更新分开进行
targetSdkVersion(选择应用进入新的运行时行为)和
minSdkVersion(决定哪些设备可以安装应用程序)
上)。
6. 依赖项“androidx.annotation:annotation-experimental:1.3.0”要求库和应用程序
的版本33或更高版本依赖它进行编译
Android api。
:app目前针对android-32进行编译。
建议操作:更新此项目以使用更新的compileSdkVersion
至少33个,例如33个。
请注意,更新库或应用程序的compileSdkVersion(其中
允许使用更新的api)可以与更新分开进行
targetSdkVersion(选择应用进入新的运行时行为)和
minSdkVersion(决定哪些设备可以安装应用程序)
上)。
点击文件>项目结构>modules修改CompileSdk版本为33即可正常运行
看着错误提示好像是我的sdk编译版本有问题,但前几天用32还好好的,莫名其妙今天创建空项目程序都要用33实在不能理解,好在也就花了半小时,android studio的bug太玄学了文章来源地址https://www.toymoban.com/news/detail-599394.html
到了这里,关于奇怪的AndroidStudio报错--checkDebugAarMetadata--修改SDK版本为33成功修复的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!