Last active
March 7, 2020 15:01
-
-
Save riley-dog/8050987 to your computer and use it in GitHub Desktop.
Adding google api to build.gradle file in android studio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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