Android Studio中DriveQuickstart样本项目 [英] DriveQuickstart sample project in Android Studio

查看:339
本文介绍了Android Studio中DriveQuickstart样本项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以请提供一些指导如何创建DriveQuickstart演示应用程序( https://developers.google .COM Android Studio中/驱动器/快速启动功能的Andr​​oid ,步骤2-3)?

Can you please provide some guide how to create DriveQuickstart demo application (https://developers.google.com/drive/quickstart-android, steps 2-3) in Android Studio?

的问题是,Android Studio中找不到com.google.api。*类,像com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential。我不能找到它无论是在谷歌播放-services.jar,而不是在Android SDK中的文件夹。

The problem is that Android Studio can't find com.google.api.* classes, like com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential. And I can't find it neither in google-play-services.jar, not in Android SDK folders.

我用与编译:谷歌API的17Android Studio中,我下载了SDK中经理有关的所有最新更新(包括谷歌的API为API17,谷歌播放服务,谷歌库)

I use "Compile with: Google APIs 17" in Android Studio, I downloaded all the latest updates in SDK manager (including Google APIs for API17, Google Play services, Google Repository).

根据 http://developer.android.com/google/play-服务/ setup.html 我加

dependencies {
    compile 'com.android.support:appcompat-v7:+'
    compile 'com.google.android.gms:play-services:4.1.+'
}

在的build.gradle。我应该执行什么其他操作编译示例源$ C ​​$ C,增加一些外部库?您所提供的用于Eclipse伟大的详细步骤,但什么也没有说关于Android Studio和摇篮。

in build.gradle. What other actions should I perform to compile the sample source code, add some external library? You have provided great detailed steps for Eclipse, but said nothing about Android Studio with Gradle.

推荐答案

在快速启动,你遵循的所有的步骤2中的项目?

In the Quickstart, did you follow all of the items in Step 2?

特别是,它看起来像你错过了最后两个(容易混淆的编号为1安培; 2,其安装在谷歌客户利布斯到您的项目在项目中打开库文件夹,并检查是否有一堆客户端库这样的为googleapi-client.jar中。

Specifically it looks like you missed out the last two (confusingly numbered 1 & 2 which install the Google Client Libs into your project. Open the "libs" folder in your project and check that you have a bunch of client libs such as "googleapi-client.jar".

这篇关于Android Studio中DriveQuickstart样本项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆