进口com.google.api.client *不能得到解决 [英] Import com.google.api.client.* cannot be resolved
问题描述
我试图运行此谷歌实施的地方我从这里下载的链接。
I am trying to run this implementation of Google Place I downloaded from here link.
正如你可以在下面的图片中看到(而不是在其本机大小,但我认为它仍然工作),我得到一个错误(无法解析)都在我的进口。您也可以从我有谷歌API客户端库的Java代替图像以及在Maven插件告诉自code笔者提到曾使用的库在这个项目中。
As you can see in the following image (not in its native size but i think it works nonetheless), I am getting an error (cannot be resolved) all across my imports. You can also tell from the image that I have the Google APIs Client Library for Java in place as well as the Maven plugin since the code author mentioned having used the library in this project.
我还添加了高亮依赖性pom.xml中使用Maven插件时,在另一个线程建议。此外,我已经尝试运行对多个SDK版本的项目(从2.1撰文高达3.2的告知)。
I also have added the highlighted dependency to pom.xml as suggested in another thread when using the Maven plugin. Additionally I have tried running the project against multiple sdk versions (from 2.1 as told by the author up to 3.2).
我缺少的是在这里吗?这实际上是我第一次有外部库来工作,所以我肯定有东西混在这里。
What am i missing here? This is actually the first time I have to work with external libraries so I definitely have something mixed up here.
推荐答案
有被设计为使用谷歌API的SDK的特殊要求。
There is special versions of sdk designed to use google api.
在使用谷歌API 3.2,而不是Android 3.2的你的项目属性> Android版>项目建设目标
Use "Google API 3.2" instead of "Android 3.2" in your project properties > Android > Project Build Target
这篇关于进口com.google.api.client *不能得到解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!