Skip to content

对 LifecycleActivity 支持有问题 #9

@d200605010426

Description

@d200605010426

当activity继承 LifecycleActivity 的时候 activity将无法启动
UploadDriverPermitActivity 继承了LifecycleActivity,导致 UploadDriverPermitActivity 无法启动
具体错误如下:

W/Phantom ( 6513): [ (PluginContext.java:84)# createContext -> main ] createContext error, targetClass: class com.wlqq.phantom.plugin.usercenter.verifiy.UploadDriverPermitActivity
W/Phantom ( 6513): java.lang.ClassCastException: com.wlqq.phantom.plugin.usercenter.verifiy.UploadDriverPermitActivity cannot be cast to com.wlqq.phantom.library.proxy.PluginInterceptActivity
W/Phantom ( 6513): at com.wlqq.phantom.library.proxy.PluginContext.createContext(PluginContext.java:69)
W/Phantom ( 6513): at com.wlqq.phantom.library.proxy.ActivityHostProxy.onCreate(ActivityHostProxy.java:115)
W/Phantom ( 6513): at android.app.Activity.performCreate(Activity.java:5990)
W/Phantom ( 6513): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
W/Phantom ( 6513): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
W/Phantom ( 6513): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
W/Phantom ( 6513): at android.app.ActivityThread.access$800(ActivityThread.java:151)
W/Phantom ( 6513): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
W/Phantom ( 6513): at android.os.Handler.dispatchMessage(Handler.java:102)
W/Phantom ( 6513): at android.os.Looper.loop(Looper.java:135)
W/Phantom ( 6513): at android.app.ActivityThread.main(ActivityThread.java:5254)
W/Phantom ( 6513): at java.lang.reflect.Method.invoke(Native Method)
W/Phantom ( 6513): at java.lang.reflect.Method.invoke(Method.java:372)
W/Phantom ( 6513): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
W/Phantom ( 6513): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
W/Phantom ( 6513): [ (ActivityHostProxy.java:160)# onCreate -> main ] ActivityHostProxy onCreate error: com.wlqq.phantom.plugin.usercenter.verifiy.UploadDriverPermitActivity
W/Phantom ( 6513): java.lang.Exception: create mClientActivity return null
W/Phantom ( 6513): at com.wlqq.phantom.library.proxy.ActivityHostProxy.onCreate(ActivityHostProxy.java:117)
W/Phantom ( 6513): at android.app.Activity.performCreate(Activity.java:5990)
W/Phantom ( 6513): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
W/Phantom ( 6513): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
W/Phantom ( 6513): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
W/Phantom ( 6513): at android.app.ActivityThread.access$800(ActivityThread.java:151)
W/Phantom ( 6513): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
W/Phantom ( 6513): at android.os.Handler.dispatchMessage(Handler.java:102)
W/Phantom ( 6513): at android.os.Looper.loop(Looper.java:135)
W/Phantom ( 6513): at android.app.ActivityThread.main(ActivityThread.java:5254)
W/Phantom ( 6513): at java.lang.reflect.Method.invoke(Native Method)
W/Phantom ( 6513): at java.lang.reflect.Method.invoke(Method.java:372)
W/Phantom ( 6513): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
W/Phantom ( 6513): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions