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

工具导航Map