Skip to content

Instantly share code, notes, and snippets.

@johnscheible
Last active November 20, 2020 11:27
Show Gist options
  • Save johnscheible/5994719 to your computer and use it in GitHub Desktop.
Save johnscheible/5994719 to your computer and use it in GitHub Desktop.
Dependencies for using Google Drive APIs with the Android Gradle build system
// Replace 'dependencies' in your build.gradle file with the following
// or add these to whatever other dependencies you have.
dependencies {
compile 'com.android.support:support-v4:13.0.+'
compile 'com.google.android.gms:play-services:3.1.36+'
compile('com.google.api-client:google-api-client:1.4.1-beta') {
exclude group: 'com.google.android.google-play-services'
}
compile 'com.google.http-client:google-http-client-gson:1.15.0-rc'
compile('com.google.api-client:google-api-client-android:1.15.0-rc') {
exclude group: 'com.google.android.google-play-services'
}
compile 'com.google.apis:google-api-services-drive:v2-rev82-1.15.0-rc'
}
@RomanLinde
Copy link

Thank you! You saved us hours of googling :)

@sprimgupta
Copy link

Unable to find Drive.Files.Insert :(. Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment