Android What is the difference between compileSDKVersion "Google Inc .: Google API: 22" and "22"?

Inside the Gradle.build file, I see several projects using

compileSdkVersion = "Google Inc .: Google API: 22"

and some just use the number

compileSdkVersion = "22"

What is the difference between the two?

+6
source share
1 answer

The first builds against android.jar , which contains V1 maps with a long list. The second is not.

Please note that the current version of Google Maps for Android, known as Maps V2, is part of the Play Services SDK and therefore does not need a special compileSdkVersion .

IMHO, the first is the smell of code, with one exception, if the code really uses Maps V1.

+7
source

All Articles