grails - Google API:阅读文档

标签 grails google-api

大家。

我在使用Google API时遇到了一些问题:想阅读文档列表,但是在第一行

DocsService client = new DocsService("yourCo-yourAppName-v1");

有一个异常(exception):
Could not initialize class com.google.gdata.client.docs.DocsService. Stacktrace follows:
Caused by NoClassDefFoundError: Could not initialize class com.google.gdata.client.docs.DocsService

有什么想法和建议吗?

最佳答案

看来您缺少了根据NoClassDefFoundError错误判断的依赖项。确保在gsp / HTML的开头具有正确的google API引用,或者在groovy文件中具有正确的导入。

关于grails - Google API:阅读文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10864137/

相关文章:

mysql - Grails 和 MySQL 分区

Hibernate 或 Grails - 需要帮助理解级联

c# - 尝试使用 Google.Apis.Gmail 从 ASP.NET Core Web API 应用程序从 google 工作区发送电子邮件时出错

Grails 组的属性和顺序。这个怎么运作?

html - 将对象属性扩展为标记属性

grails - 在同一个项目中同时使用 Spock 和 Spring Security 插件是否有任何错误?

authentication - 如何存储 google api (OAuth 2) 权限?

node.js - nodejs googleapis,authClient.request 不是函数

google-api - 地理编码 API 与容器和 IP 白名单的集成

android - Google API 与 Google Play 服务,为什么我们现在需要 Google API?