本文介绍了MUPDF UnsupportedOperationException异常打开PDF时,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用MUPDF一个Android项目,但有一些Android用户的问题。我得到报告如下:

I am using MUPDF for an android project, but there is an issue by some android users. I got report as following:

 java.lang.UnsupportedOperationException: Not supported
 E/AndroidRuntime( 4677):   at com.odilogy.mupdf.ReaderView.getSelectedView(ReaderView.java:664)
 E/AndroidRuntime( 4677):   at android.widget.AdapterView.onInitializeAccessibilityEvent(AdapterView.java:951)
 E/AndroidRuntime( 4677):   at android.widget.AdapterView.onRequestSendAccessibilityEvent(AdapterView.java:926)
 E/AndroidRuntime( 4677):   at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:704)
 E/AndroidRuntime( 4677):   at android.view.View.sendAccessibilityEventUncheckedInternal(View.java:4952)
 E/AndroidRuntime( 4677):   at android.view.View.sendAccessibilityEventUnchecked(View.java:4933)
 E/AndroidRuntime( 4677):   at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.run(ViewRootImpl.java:6675)
 E/AndroidRuntime( 4677):   at android.os.Handler.handleCallback(Handler.java:733)
 E/AndroidRuntime( 4677):   at android.os.Handler.dispatchMessage(Handler.java:95)
 E/AndroidRuntime( 4677):   at android.os.Looper.loop(Looper.java:136)
 E/AndroidRuntime( 4677):   at android.app.ActivityThread.main(ActivityThread.java:5017)
 E/AndroidRuntime( 4677):   at java.lang.reflect.Method.invokeNative(Native Method)
 E/AndroidRuntime( 4677):   at java.lang.reflect.Method.invoke(Method.java:515)
 E/AndroidRuntime( 4677):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
 E/AndroidRuntime( 4677):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
 E/AndroidRuntime( 4677):   at dalvik.system.NativeStart.main(Native Method)

此行中出现此异常:

this exception occurs by this line:

public View getSelectedView() {
    throw new UnsupportedOperationException("Not supported");
}

我不知道如何解决这个问题,任何人都可以帮忙吗?谢谢!

I have no idea how to fix that, anybody can help? thanks!

问候

推荐答案

只是固定的:

public View getSelectedView() {
//throw new UnsupportedOperationException("Not supported");

return null;

这篇关于MUPDF UnsupportedOperationException异常打开PDF时,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 08:00