NoSuchMethodError:GWT项目中的com.google.common.base.Platform.systemNanoTime() [英] NoSuchMethodError: com.google.common.base.Platform.systemNanoTime() In GWT project

查看:96
本文介绍了NoSuchMethodError:GWT项目中的com.google.common.base.Platform.systemNanoTime()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用systemNanoTime()

... threw an unexpected exception: java.lang.NoSuchMethodError: com.google.common.base.Platform.systemNanoTime()J
    at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389)
    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
    ........

我正在使用番石榴18. Java构建路径中的jar.

I'm using guava-18. jar in Java Build Path.

推荐答案

问题是我正在使用 google-collect-1.0-rc1.jar guava-18.0.同一项目的Java构建路径中的jar ,因此我不得不删除google-collect

The problem was that I'm using the google-collect-1.0-rc1.jar and guava-18.0.jar in Java Build Path for the same project so I had to removed the google-collect

这篇关于NoSuchMethodError:GWT项目中的com.google.common.base.Platform.systemNanoTime()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆