签名APk中的MuPDF崩溃问题

时间:2016-10-20 12:26:30

标签: crash mupdf signed-apk

我已经在我的Android应用程序中集成了mupdf,它在我使用的模拟器和设备中完美无缺,但它在发布版本中崩溃,在创建签名apk后如果我点击pdf文件打开应用程序崩溃显示下面的错误

E / UncaughtException:java.lang.NoSuchFieldError:类Lcom / artifex / mupdflib / MuPDFCore中没有name ='globals'cignal ='J'的字段;                                                           at com.artifex.mupdflib.MuPDFCore.openFile(Native Method)                                                           在com.artifex.mupdflib.MuPDFCore。(未知来源)                                                           在com.artifex.mupdflib.MuPDFActivity.a(未​​知来源)                                                           at com.artifex.mupdflib.MuPDFActivity.onCreate(Unknown Source)                                                           在android.app.Activity.performCreate(Activity.java:5058)                                                           在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)                                                           在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2077)                                                           在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2151)                                                           在android.app.ActivityThread.access $ 700(ActivityThread.java:139)                                                           在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1244)                                                           在android.os.Handler.dispatchMessage(Handler.java:99)                                                           在android.os.Looper.loop(Looper.java:137)                                                           在android.app.ActivityThread.main(ActivityThread.java:5003)                                                           at java.lang.reflect.Method.invokeNative(Native Method)                                                           在java.lang.reflect.Method.invoke(Method.java:511)                                                           在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:795)                                                           在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)                                                           在dalvik.system.NativeStart.main(本地方法)

1 个答案:

答案 0 :(得分:0)

尝试添加:

-keep class com.artifex.mupdfdemo.** {*;}

到你的proguard配置