NoSuchMethodError: com.google.common.base.Platform

2020-06-19 02:02发布

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条回答
干净又极端
2楼-- · 2020-06-19 02:20

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

查看更多
登录 后发表回答