所以我在Android Studio中运行Intellij的静态分析,我收到Calling new methods on older versions
错误。出于某种原因,它说我当前的min api是1,而且需要的是11.这是build.gradle
的相关部分:
int minSdk = hasProperty('minSdk') ? property('minSdk').toInteger() : 15
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
...
defaultConfig {
targetSdkVersion 23
minSdkVersion minSdk
...
}
...
}
...
我的minSdk语法有问题吗?