Get the Android Consumer SDK
Stay organized with collections
Save and categorize content based on your preferences.
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:
- Check the minimum system requirements
- Get the Consumer SDK
- Configure a Google Cloud Console project
- Get authentication tokens
- 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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-01 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-10-01 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-01 UTC."]]