Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio minSdkVersion and targetSdkVersion warning

In an Android project that I have, I have this section in the build.gradle file:

android {
    compileSdkVersion 19
    buildToolsVersion "19.0.3"

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 19;
    }
}

On the 'minSdkVersion' and 'targetSdkVersion' properties, there are the warnings:

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

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

Is this a bug, or something else?

like image 441
Blue5hift Avatar asked Mar 12 '14 03:03

Blue5hift


1 Answers

This is a bug, but I don't have a bug number for it. The syntax checking for build.gradle files is incomplete, and this warning is spurious. Please ignore it.

like image 76
Scott Barta Avatar answered Oct 30 '22 20:10

Scott Barta