E/AndroidRuntime: FATAL EXCEPTION: client_duplex_write_thread
Process: com.un.demo.test, PID: 660
java.lang.NoSuchMethodError: No virtual method clear()Ljava/nio/ByteBuffer; in class Ljava/nio/ByteBuffer; or its super classes (declaration of 'java.nio.ByteBuffer' appears in /system/framework/core-oj.jar)
at com.xuhao.didi.core.iocore.WriterImpl.write(WriterImpl.java:58)
at com.xuhao.didi.socket.client.impl.client.iothreads.DuplexWriteThread.runInLoopThread(DuplexWriteThread.java:35)
at com.xuhao.didi.socket.common.interfaces.basic.AbsLoopThread.run(AbsLoopThread.java:47)
at java.lang.Thread.run(Thread.java:760)
之前系统java版本为1.8,打的jar包都正常;
后面有个项目需要切到java 11版本,忘记切回去,结果打jar包运行后,报以上错误。
切回1.8后,重新打jar报恢复正常。
来自网友分享
网友评论