如何避免谷歌api电子表格与日历不兼容 [英] How to avoid google api spreadsheets incompatibility with calendar
问题描述
但Spreadsheets API CONTAINER包含google-collect-1.0-rc1。包含Joiner类的旧版本的jar。
Calendar需要更新的版本(使用on()方法),它带有guava-jdk5-当日历代码运行时,Joiner类已经被解析(成为旧版本),并且失败时使用NoSuchMethod错误。
这意味着它们不兼容。我尝试过多个类路径设置,但没有运气。 Spreadsheet access works,但然后日历访问失败。
其他人看到了这个,并得到了解决方法吗?
尝试从google-collect-1.0-rc1.jar中删除Joiner类 - 我从几个jar文件中删除了类,不是很干净,但工作正常。
In my GAE/J project I am attempting to use Google APIs, Spreadsheets and Calendar.
But Spreadsheets API CONTAINER includes the google-collect-1.0-rc1.jar that includes an older version of the Joiner class.
Calendar requires a newer version of it (with the on() method), that comes with the guava-jdk5-13.0.jar, that is in the Calendar API CONTAINER.
When Calendar code runs, the Joiner class has been resolved (to be the older version) and fails with a NoSuchMethod error.
This means that they are incompatible. I have tried multiple classpath settings with no luck. Spreadsheet access works, but then Calendar access fails.
Anyone else seen this and got a workaround?
try deleting the Joiner class from google-collect-1.0-rc1.jar - I have deleted classes from a few jar files, not very clean, but works fine.
这篇关于如何避免谷歌api电子表格与日历不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!