Google 任务演示 API 出现问题
我一直在关注 Google Tasks API 的发布,我只是想开始使用它,但我无法编译第一步,我遇到了
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
有人有类似的错误或知道怎么做吗我可以解决这个问题吗?我正在遵循 http:// 中的示例code.google.com/intl/es-ES/apis/tasks/v1/using.html#retriving_task_lists
提前致谢
I've been following the launch of the Google Tasks API, and I was just to start playing with it, but I'm not be able to compile the first steps, I'm having an
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
Has somebody have a similar error or knows how can I fix this? I'm following the example in http://code.google.com/intl/es-ES/apis/tasks/v1/using.html#retrieving_task_lists
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Java google API 客户端库似乎具有依赖项 Google 的 Guava 库。您需要添加 guava-r09.jar (包含在链接的 zip 文件中)以及类路径的部分或全部其他依赖项的 jar。或者您可以使用 Maven,在这种情况下,系统会为您处理依赖关系。
The Java google API client library appears to have a dependency on Google's Guava library. You'll need to add guava-r09.jar (contained in the linked zip file) and the jars for some or all of the other dependencies to your classpath. Or you could use Maven, in which case the dependencies would be taken care of for you.