安卓初始化项目报错An issue was found when checking AAR metadata

An issue was found when checking AAR metadata:

  1.  Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that
      depend on it to compile against version 34 or later of the
      Android APIs.

      :app is currently compiled against android-33.

      Also, the maximum recommended compile SDK version for Android Gradle
      plugin 7.4.1 is 33.

      Recommended action: Update this project's version of the Android Gradle
      plugin to one that supports 34, then update this project to use
      compileSdkVerion of at least 34.

      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).

解决办法,将com.google.android.material:material:1.10.0降为com.google.android.material:material:1.8.0

dependencies {
   

    implementation 'androidx.core:core-ktx:1.7.0'
    implementation 'androidx.appcompat:appcompat:1.6.1'
    implementation 'com.google.android.material:material:1.8.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

在这里插入图片描述

最近更新

  1. TCP协议是安全的吗?

    2023-12-08 06:02:04       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-08 06:02:04       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-08 06:02:04       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-08 06:02:04       20 阅读

热门阅读

  1. c++的查找算法总结

    2023-12-08 06:02:04       29 阅读
  2. yolov5 获取漏检图片脚本

    2023-12-08 06:02:04       37 阅读
  3. 第57天:django学习(六)

    2023-12-08 06:02:04       31 阅读
  4. 第58天:django学习(七)

    2023-12-08 06:02:04       33 阅读
  5. vue+django 开发环境跨域前后端联调配置

    2023-12-08 06:02:04       42 阅读
  6. RabbitMQ

    RabbitMQ

    2023-12-08 06:02:04      42 阅读
  7. block-recurrent-transformer-pytorch 学习笔记

    2023-12-08 06:02:04       37 阅读
  8. js事件流模型

    2023-12-08 06:02:04       45 阅读
  9. MySql常用面试题

    2023-12-08 06:02:04       32 阅读
  10. 剑指 Offer(第2版)面试题 27:二叉树的镜像

    2023-12-08 06:02:04       42 阅读
  11. 如何进行多ip服务器租用?

    2023-12-08 06:02:04       37 阅读
  12. linux-tar命令、解压、压缩

    2023-12-08 06:02:04       38 阅读