Inside the Gradle.build file I see some projects using
compileSdkVersion="Google Inc.:Google APIs:22"
and some are just using the number
compileSdkVersion="22"
What is the difference between the two?
The first one builds against an android.jar
that contains the long-since-discontinued Maps V1. The second one does not.
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 one is a code smell, with the sole exception being if the code actually does use Maps V1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With