【问题标题】:Android Studio minSdkVersion and targetSdkVersion warningAndroid Studio minSdkVersion 和 targetSdkVersion 警告
【发布时间】:2014-04-15 23:30:35
【问题描述】:

在我拥有的一个 Android 项目中,我在 build.gradle 文件中有此部分:

android {
    compileSdkVersion 19
    buildToolsVersion "19.0.3"

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 19;
    }
}

在“minSdkVersion”和“targetSdkVersion”属性上,有警告:

'minSdkVersion' cannot be applied to '(java.lang.Integer)'

'targetSdkVersion' cannot be applied to '(java.lang.Integer)`

这是一个错误,还是别的什么?

【问题讨论】:

标签: android gradle android-studio build.gradle


【解决方案1】:

这是一个错误,但我没有它的错误编号。 build.gradle 文件的语法检查不完整,此警告是虚假的。请忽略它。

【讨论】:

    猜你喜欢
    • 2022-01-10
    • 1970-01-01
    • 2022-01-22
    • 2013-11-28
    • 1970-01-01
    • 2013-12-20
    • 2020-01-14
    • 1970-01-01
    相关资源
    最近更新 更多