NoSuchMethodError: com.google.common.base.Platform.systemNanoTime() In GWT project

风格不统一 提交于 2019-12-05 00:10:09

问题


I get an exception in a gwt project where I'm using the 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)
    ........

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


回答1:


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



来源:https://stackoverflow.com/questions/29395810/nosuchmethoderror-com-google-common-base-platform-systemnanotime-in-gwt-proje

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!