android ExceptionInInitializerError解決辦法

yangxi_001發表於2014-01-23

09-20 01:13:36.180: E/AndroidRuntime(5202): FATAL EXCEPTION: main
09-20 01:13:36.180: E/AndroidRuntime(5202): java.lang.ExceptionInInitializerError
09-20 01:13:36.180: E/AndroidRuntime(5202):         at com.artifex.mupdf.MuPDFActivity.openFile(MuPDFActivity.java:112)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at com.artifex.mupdf.MuPDFActivity.onCreate(MuPDFActivity.java:152)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at android.app.ActivityThread.access$1500(ActivityThread.java:117)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at android.os.Handler.dispatchMessage(Handler.java:99)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at android.os.Looper.loop(Looper.java:130)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at android.app.ActivityThread.main(ActivityThread.java:3691)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at java.lang.reflect.Method.invokeNative(Native Method)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at java.lang.reflect.Method.invoke(Method.java:507)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at dalvik.system.NativeStart.main(Native Method)
09-20 01:13:36.180: E/AndroidRuntime(5202): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load mupdf: findLibrary returned null
09-20 01:13:36.180: E/AndroidRuntime(5202):         at java.lang.Runtime.loadLibrary(Runtime.java:429)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at java.lang.System.loadLibrary(System.java:554)
09-20 01:13:36.180: E/AndroidRuntime(5202):         at com.artifex.mupdf.MuPDFCore.<clinit>(MuPDFCore.java:10)
09-20 01:13:36.180: E/AndroidRuntime(5202):         ... 15 more

是因為專案中缺少動態庫——libvudroid.so  下載該庫放到專案的libs/armeabi目錄裡,然後再重新編譯一下專案就可以了。

 

下載地址: http://code.google.com/p/vudroid/source/browse/trunk/libs/armeabi/libvudroid.so?r=30

 

希望對大家有所幫助!

相關文章