为什么我在 Android studio 中收到“使用至少 34 的较新的compileSdk”错误?

问题描述 投票:0回答:1

“”应用程序当前是针对 android-33 编译的。建议的操作:更新此项目以使用至少 34 的较新的compileSdk,例如 34。请注意,更新库或应用程序的compileSdk(这允许较新的 API 为“”

我想获取我在虚拟电话上运行的方法的日志。

android logcat
1个回答
0
投票

我已将应用程序级别 gradle 文件中的compileSdk和targetSdk版本从33更改为34。

android {
namespace = "com.undivided.todo"
compileSdk = 34
        
defaultConfig {
    applicationId = "com.undivided.todo"
    minSdk = 24
    targetSdk = 34
    versionCode = 1
    versionName = "1.0"

    testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
}
© www.soinside.com 2019 - 2024. All rights reserved.