小编Mer*_*aee的帖子

依赖项“androidx.activity:activity:1.8.0”需要依赖它的库或应用程序针对版本 34 或更高版本的 Android API 进行编译

我已经在 Android Studio 中创建了一个新项目,但是当我运行该应用程序来测试它时,它向我显示以下错误:

\n
An issue was found when checking AAR metadata:\n\n  1.  Dependency \'androidx.activity:activity:1.8.0\' requires libraries and applications that\n      depend on it to compile against version 34 or later of the\n      Android APIs.\n\n      :app is currently compiled against android-33.\n\n      Also, the maximum recommended compile SDK version for Android Gradle\n      plugin 8.0.2 is 33.\n\n      Recommended action: Update this project\'s version of the Android Gradle\n      plugin to one that supports 34, then update this project to use\n      compileSdk of at …
Run Code Online (Sandbox Code Playgroud)

java android android-studio mobile-development

42
推荐指数
5
解决办法
7万
查看次数