Overview

Install and configure the Google Play services SDK,
which includes the Maps SDK for Android. Note: If you use the
Maps SDK for Android with a
Google Maps APIs Premium Plan license, you must download and
configure the
Premium Plan SDK instead.

Get an API key. To do this, you will need to register a
project in the Google Cloud Platform Console, create an API key, and restrict the API
key using your app's signing certificate.

Add the required settings to your application's manifest.

Below are more details about each step in the process.

Step 1. Download Android Studio

Step 2. Install the Google Play services SDK

You need an Android project for your app, to complete the steps in this
section. If you haven't yet created an Android application, you can follow the
guide to creating a 'hello world' app. See
Creating an Android Project.

The Maps SDK for Android is distributed as part of the Google Play
services SDK. You can download the Google Play services SDK via the Android
SDK Manager.

Specify requirement for OpenGL ES version 2

The Maps SDK for Android uses OpenGL ES version 2 to render the map.
The following setting is defined in the Google Play services manifest, and is
automatically merged into your app's manifest at build time.
You don't need to add it explicitly to your manifest:

This notifies external services of the requirement. In particular, it
prevents Google Play Store from displaying your app on devices
that don't support OpenGL ES version 2.

Specify requirement for Apache HTTP Legacy library

If you are using com.google.android.gms:play-services-maps:16.0.0 or below and
your app is targeting API level 28 (Android 9.0) or above, you must include
the following declaration within the <application> element of
AndroidManifest.xml.