Select platform: [Android](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/android/setup.md.txt "View this page for the Android platform docs.") [iOS](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/ios/setup.md.txt "View this page for the iOS platform docs.") [JavaScript](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/javascript/setup.md.txt "View this page for the JavaScript platform docs.")

<br />

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](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand.md.txt).

> [!NOTE]
> For examples, see [Android sample apps](https://github.com/googlemaps/android-on-demand-rides-deliveries-samples) or [combined samples](https://github.com/googlemaps/on-demand-rides-deliveries-samples) on GitHub.

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

1. [Check the minimum system requirements](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/android/setup.md.txt#check-min)
2. [Get the Consumer SDK](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/android/setup.md.txt#maven)
3. [Configure a Google Cloud console project](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/android/configure-project.md.txt)
4. [Get authentication tokens](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/android/auth-sdk.md.txt)
5. [Initialize the Consumer SDK](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/android/init-sdk.md.txt)

## 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](https://developers.google.com/maps/documentation/mobility/services/resources/relnotes_consumer_sdk_android.md.txt).

**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:

- Running Android 6.0 (API level
  23) or later.

- Have [Google Play services](https://developers.google.com/android/guides/overview.md.txt) installed.

## 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](https://developers.google.com/maps/documentation/mobility/journey-sharing/on-demand/android/configure-project.md.txt)