Skip to content

Instantly share code, notes, and snippets.

@riley-dog
Last active March 7, 2020 15:01
Show Gist options
  • Save riley-dog/8050987 to your computer and use it in GitHub Desktop.
Save riley-dog/8050987 to your computer and use it in GitHub Desktop.
Adding google api to build.gradle file in android studio
// After reading this shit
//http://www.gradle.org/docs/1.9/userguide/userguide_single.html#N10565
// And some of this shit
// https://code.google.com/p/google-http-java-client/wiki/Setup
// And of course guessing what the dependency package is named
// I was able to use Gradle and see its awesomeness after adding my dependenices to build.gradle in Android Studio
compile('com.google.api-client:google-api-client-android:1.17.0-rc') {
exclude group: 'xpp3'
exclude group: 'com.google.android.google-play-services'
exclude group: 'org.apache.httpcomponents'
exclude group: 'com.google.android'
}
compile('com.google.http-client:google-http-client:1.17.0-rc') {
exclude group: 'xpp3'
exclude group: 'com.google.android.google-play-services'
exclude group: 'org.apache.httpcomponents'
exclude group: 'com.google.android'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment