Get the Android Consumer SDK

  • The Google Maps Platform Consumer SDK enables journey sharing for on-demand trips in Android consumer apps.

  • Android apps using the SDK must target minSdkVersion 23 or higher and have Google Play services installed.

  • The Consumer SDK can be obtained from the Google Maven repository (versions 2.1.0 and later).

  • Before implementing, ensure the device meets minimum requirements including Android 6.0 (API level 23) or later.

  • Next steps include configuring a Google Cloud Console project and obtaining authentication tokens.

Select platform: Android iOS JavaScript

To share journeys for on-demand trips in your Android consumer apps, use the Consumer SDK. For more information on following a trip using the Consumer SDK, see Follow a trip in Android.

To set up the Consumer SDK for your Android consumer app, follow these steps:

  1. Check the minimum system requirements
  2. Get the Consumer SDK
  3. Configure a Google Cloud console project
  4. Get authentication tokens
  5. Initialize the Consumer SDK

Check the minimum system requirements

See the release notes for the minimum requirements for the version of the Consumer SDK you are using. See Release notes.

To use the Consumer SDK: Your app must target minSdkVersion 23 or higher.

To run an app that uses the Consumer SDK: Android mobile devices must meet the following minimum requirements:

Get the Consumer SDK from the Google Maven repository

Get the Consumer SDK versions 2.1.0 and later from the Google Maven repository. The previously used private repository channel has been deprecated.

Gradle

Add the following to your build.gradle file:

repositories {
    ...
    google()
}

Maven

Add the following to your pom.xml file:

<project>
  ...
  <repositories>
    <repository>
      <id>google-maven-repository</id>
      <url>https://maven.google.com</url>
    </repository>
  </repositories>
  ...
</project>

What's next

Configure a Google Cloud Console project