我正在开发使用 Apache POI 读取和写入 excel 格式文件的 android 应用程序,在读取 .xlsx 文件时出现以下异常。我正在努力解决这个问题,但找不到任何解决问题的方法,如果有人知道解决方案,请帮助我。这是 logcat 错误:
07-08 18:22:07.350: E/AndroidRuntime(4549): FATAL EXCEPTION: main
07-08 18:22:07.350: E/AndroidRuntime(4549): java.lang.VerifyError: org/apache/poi/xssf/usermodel/XSSFWorkbook
07-08 18:22:07.350: E/AndroidRuntime(4549): at com.example.exc2phconverter.Homepage.onActivityResult(Homepage.java:345)
07-08 18:22:07.350: E/AndroidRuntime(4549): at android.app.Activity.dispatchActivityResult(Activity.java:5390)
07-08 18:22:07.350: E/AndroidRuntime(4549): at android.app.ActivityThread.deliverResults(ActivityThread.java:3178)
07-08 18:22:07.350: E/AndroidRuntime(4549): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3225)
07-08 18:22:07.350: E/AndroidRuntime(4549): at android.app.ActivityThread.access$1100(ActivityThread.java:140)
07-08 18:22:07.350: E/AndroidRuntime(4549): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1275)
07-08 18:22:07.350: E/AndroidRuntime(4549): at android.os.Handler.dispatchMessage(Handler.java:99)
07-08 18:22:07.350: E/AndroidRuntime(4549): at android.os.Looper.loop(Looper.java:137)
07-08 18:22:07.350: E/AndroidRuntime(4549): at android.app.ActivityThread.main(ActivityThread.java:4898)
07-08 18:22:07.350: E/AndroidRuntime(4549): at java.lang.reflect.Method.invokeNative(Native Method)
07-08 18:22:07.350: E/AndroidRuntime(4549): at java.lang.reflect.Method.invoke(Method.java:511)
07-08 18:22:07.350: E/AndroidRuntime(4549): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
07-08 18:22:07.350: E/AndroidRuntime(4549): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
07-08 18:22:07.350: E/AndroidRuntime(4549): at dalvik.system.NativeStart.main(Native Method)