大家。
我在使用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/