Best way to include Google-Java-Client API with Google Contacts in Android Studio

你说的曾经没有我的故事 提交于 2019-12-13 00:50:02

问题


How to include the Google Java Client API in Android Studio...possibly via gradle? Also, I want to manage Google Contacts...so which other library can I include and how? Thanks


回答1:


The documentation for setting up the Google Java client APIs is at https://code.google.com/p/google-http-java-client/wiki/Setup. Looking at their Maven coordinates for the Android client libraries, the relevant coordinate string is com.google.http-client:google-http-client-android:1.18.0-rc. You can go to Project Structure > Modules > Dependencies > + > Library dependency and add it there.

For managing Google Contacts, start with the ContactsContract API and follow the docs from there: http://developer.android.com/reference/android/provider/ContactsContract.html



来源:https://stackoverflow.com/questions/23076102/best-way-to-include-google-java-client-api-with-google-contacts-in-android-studi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!