Configuring Google Play services
Google Play services include the classes required for our map application. So, it is required to set it up properly. It differs for Eclipse with the ADT plugin and Gradle-based Android Studio. Let's take a look at both separately. It will be simple.
Android Studio
Configuring Google Play services with Android Studio is very simple. You need to add a line of code to your build.gradle
file, which contains the Gradle build
script required to build our project. There are two build.gradle
files. You must add the code to the inner app
folder's build.gradle
file. The following screenshot shows the structure of the project:
The code should be added to the second Gradle build file that contains our app module's configuration. ...
Get Learning Android Google Maps now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.