美文网首页
记录Android-TinkerPatch时遇到的java.la

记录Android-TinkerPatch时遇到的java.la

作者: 晖仔Milo | 来源:发表于2023-04-06 17:31 被阅读0次

    具体日志如下

    Process Name: 'com.ishowedu.peiyin'
    Thread Name: 'main'
    Back traces starts.
    java.lang.IncompatibleClassChangeError: Class 'com.ishowedu.peiyin.space.dubbingart.DubbingListFragment$7' does not implement interface 'android.view.View$OnTouchListener' in call to 'boolean android.view.View$OnTouchListener.onTouch(android.view.View, android.view.MotionEvent)' (declaration of 'android.view.View' appears in /system/framework/framework.jar!classes3.dex)
        at android.view.View.dispatchTouchEvent(View.java:14856)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3125)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2798)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3131)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3131)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3131)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3131)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3131)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3131)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3131)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3131)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3131)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3131)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3131)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3131)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3131)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3131)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)
        at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:562)
        at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1895)
        at android.app.Activity.dispatchTouchEvent(Activity.java:4328)
        at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)
        at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:520)
        at android.view.View.dispatchPointerEvent(View.java:15133)
        at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:6671)
        at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6459)
        at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5900)
        at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5957)
        at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5923)
        at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6088)
        at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5931)
        at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:6145)
        at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5904)
        at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5957)
        at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5923)
        at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5931)
        at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5904)
        at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:8926)
        at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:8877)
        at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:8845)
        at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:9059)
        at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:280)
        at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
        at android.os.MessageQueue.next(MessageQueue.java:337)
        at android.os.Looper.loopOnce(Looper.java:168)
        at android.os.Looper.loop(Looper.java:299)
        at android.app.ActivityThread.main(ActivityThread.java:8105)
        at java.lang.reflect.Method.invoke(Method.java)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)
    Back traces ends.
    

    问题原因:未知,期待大神解答。

    解决方案:将出现问题的类重新命名,再编译,问题解决。
    老文件名:

    DubbingListFragment
    

    新文件名

    DubbingListFragment2
    

    相关文章

      网友评论

          本文标题:记录Android-TinkerPatch时遇到的java.la

          本文链接:https://www.haomeiwen.com/subject/cuuuddtx.html