最好的办法,包括与Android Studio中谷歌谷歌联系人-Java的客户端API [英] Best way to include Google-Java-Client API with Google Contacts in Android Studio
问题描述
如何包括Android Studio中可能通过的的gradle谷歌的Java客户端API ...?另外,我要管理谷歌联系人......所以这其他图书馆,我可以包括又如何?谢谢
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
推荐答案
设置了谷歌的Java客户端API的文档是的 HTTPS://$c$c.google.com/p/google-http-java-client/wiki/Setup 。看着自己的Maven坐标为Android客户端库,相关的协调字符串 com.google.http客户端:谷歌的HTTP客户端Android版:1.18.0-RC
。你可以去项目结构>模块>依赖> +>图书馆依赖,并添加它。
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.
有关管理谷歌联系人,开始与 ContactsContract
API,并按照文档从那里:的 http://developer.android.com/reference/android/provider/ContactsContract.html
For managing Google Contacts, start with the ContactsContract
API and follow the docs from there: http://developer.android.com/reference/android/provider/ContactsContract.html
这篇关于最好的办法,包括与Android Studio中谷歌谷歌联系人-Java的客户端API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!