android - 如何在 Android Studio 中导入 Google API

标签 android google-api google-drive-api android-studio

我正在试用 Android Studio。我想在我的项目中使用 Drive API。在eclipse中,有一个Google Plugin for Eclipse,但是Android Studio呢?到目前为止有人试过吗?

最佳答案

您可以在下面找到 Google Drive (2014.12.28) 的最新版本:

//Google Drive API
compile 'com.google.android.gms:play-services:6.5.+'
compile 'com.google.api-client:google-api-client-xml:1.18.0-rc'         
compile 'com.google.http-client:google-http-client-gson:1.18.0-rc'
compile 'com.google.api-client:google-api-client-android:1.18.0-rc'
compile 'com.google.apis:google-api-services-drive:v2-rev155-1.19.0'

要查看最新版本,请尝试以下链接:

https://developer.android.com/google/play-services/setup.html

https://code.google.com/p/google-api-java-client

https://developers.google.com/api-client-library/java/apis/drive/v2

http://mvnrepository.com/artifact/com.google.apis/google-api-services-drive

关于android - 如何在 Android Studio 中导入 Google API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16782298/

相关文章:

node.js - 如何使 node_modules 成为全局的而不是项目内的文件夹

android - 未找到 Google Vision 条形码库

android - 无法从我的异步任务访问我的 ListView

c# - OAuth2 谷歌 API

angular - 如何在开发的应用程序运行时删除 https ://optimizationguide-pa. googleapis.com 调用执行?

google-drive-api - Google Drive SDK - DrEdit Python - 网上商店 list

visual-studio - 在 Google 云端硬盘上创建 Visual Studio 项目有任何问题吗?

java - Dagger 2 : error while getting a multiple instances of same object with @Named

android - Google Analytics(Android)令人困惑的高忠诚度统计数据

javascript - 有没有办法测试谷歌数据源?不知道如何处理这些错误