异常 java.lang.UnsatisfiedLinkError: dlopen failed: file offset for the library

今天对接硬件的时候入得大坑,一直报异常

 
    java.lang.UnsatisfiedLinkError: dlopen failed: file offset for the library "/data/app/trafficpolice-1/lib/arm/libzyapi_common.so" >= file size: 0 >= 0
        at java.lang.Runtime.loadLibrary(Runtime.java:372)
        at java.lang.System.loadLibrary(System.java:1076)
        at android.zyapi.CommonApi.<clinit>(CommonApi.java:26)
  
问题原因:由于删掉恢复,看似文件正常,其实已经损坏
解决办法:删掉重新复制原文件即可

你可能感兴趣的:(常见异常,java,exception,jdk,bug)