设置适用于 Android 的 Google 客户端 Java API 日历示例时出现问题
******问题已编辑,请参阅下文**
当我将示例项目 (Calendar-v2-atom-android-sample) 导入 eclipse 时,我遇到了问题。
我使用 Mercurial 将项目克隆到本地目录。然后,我导入了该文件并添加了外部 JAR,它们是 Google 客户端 Java API (http://code.google.com/p/google-api-java-client/wiki/Setup)。
我已经安装了 Eclipse 的 Maven 和 Mercurial 插件。
我遇到的第一个问题是,在eclipse的Package Explorer中的根项目文件夹旁边,有一条消息说“hg status待处理...”。我通过执行以下操作修复了此问题: 窗口->首选项->团队->水星 ->取消选中“使用默认(内置)Mercurial 可执行文件”,
然后将 hg.exe 的位置设置为 C:\Program Files\TortoiseHg\hg.exe
我现在遇到的问题是,我不明白的是当我尝试编译时,我在 Eclipse 的 Package Explorer 中的文件上出现了一些感叹号,并且大多数其他文件上出现了黄色标签。中的错误我不知道这些错误在哪里。
这是我的工作区的图像:
请采取查看文件夹上的标签。
***如果您在查看图像时遇到问题,只需放大到页面,它就会更清晰。
,我将非常感激。
如果有任何不清楚的地方 我会尝试更好地
。
解释 -------------------------
这是 Merlin 回答我的第一个问题后遇到的问题。下面是我的“问题”视图的图片。它似乎正在存储库中搜索一些 JAR 文件,但我不明白为什么它在那里寻找它们。
我应该如何解决这个问题?
******QUESTION WAS EDITED, Please see below**
I am running into a problem when I'm importing a sample project (Calendar-v2-atom-android-sample) into eclipse.
Link for Download Setup: http://samples.google-api-java-client.googlecode.com/hg/calendar-v2-atom-android-sample/instructions.html?r=default
I used Mercurial to clone the project to a local directory. I then imported the file and added the external JARs which are the Google Client Java API (http://code.google.com/p/google-api-java-client/wiki/Setup).
I have installed the Maven and Mercurial Plugins for Eclipse.
The first problem I ran into is that beside the root project folder in the Package Explorer of eclipse, there was a message that said "hg status pending...". I fixed this by doing the following:
Window -> Preferences -> Team -> Mercurial -> uncheck “Use default (built-in) Mercurial executable"
I then set the location of the hg.exe to C:\Program Files\TortoiseHg\hg.exe
The problem I'm having now, and which I do not understand is that I am getting little tags on the files in the Package Explorer of eclipse. A little exclamation mark appears by the root project file and yellow tags appear on most of the other files. When I try to compile I get a message that I need to fix errors in the project. I don't know where these errors are.
Here is an image of my workspace:
Please take a look at the tags on the folders.
***IF YOU HAVE TROUBLE SEEING THE IMAGE JUST ZOOM INTO THE PAGE AND IT WILL BE CLEARER.
I would really appreciate anyone's input on this issue.
If anything is unclear please ask and I will try and explain in better.
Cheers.
EDIT---------------------------------------------------------------
This is the problem I'm getting after Merlin answered my first question. Below is a picture of my "Problem" view. It seems to be searching for some JAR files in a repository, but I don't understand why its looking for them there.
How should I approach this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
转到窗口 -> 显示视图 -> 问题
此视图将为您提供阻止成功构建的问题列表
更新
您需要确保相应的文件存在于以下路径中列出的路径中:问题窗口,或调整构建路径以指向正确的位置。您是否在计算机上搜索过它所抱怨的 jar 文件?
附录
要配置构建路径,请在 Eclipse 中右键单击您的项目文件夹,然后选择“
构建路径”->“构建路径”。配置构建路径
Go to Window -> Show View -> Problems
This view will provide you with a list of issues that are preventing a successful build
Update
You will need to make sure that the appropriate files exist in the paths as listed in the problems window, or adjust the build path to point to the correct location. Have you done a search on your computer for the jar files it is complainging about?
Adendum
To configure the build path, right-click your project folder in eclipse and select
Build Path -> Configure Build Path