BaseDelegate升级报错
来源:18-2 重构2-核心配置修改
凌伊
2018-12-02
BaseDelegate extends SwipeBackFragment
改成这种形式
BaseDelegate extends Fragment implements ISupportFragment
之后就报错:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.hyj.festec.debug, PID: 17210
java.lang.VerifyError: Rejecting class com.hyj.latte.ec.launcher.LauncherDelegate that attempts to sub-class erroneous class com.hyj.latte.delegates.LatteDelegate (declaration of 'com.hyj.latte.ec.launcher.LauncherDelegate' appears in /data/app/com.hyj.festec.debug-1/split_lib_slice_2_apk.apk)
at com.hyj.festec.example.ExampleActivity.setRootDelegate(ExampleActivity.java:39)
at com.hyj.latte.activities.ProxyActivity.initContainer(ProxyActivity.java:42)
at com.hyj.latte.activities.ProxyActivity.onCreate(ProxyActivity.java:34)
at com.hyj.festec.example.ExampleActivity.onCreate(ExampleActivity.java:26)
at android.app.Activity.performCreate(Activity.java:6355)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2467)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2574)
at android.app.ActivityThread.access$1100(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1425)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5684)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
Caused by: java.lang.VerifyError: Rejecting class com.hyj.latte.delegates.LatteDelegate that attempts to sub-class erroneous class com.hyj.latte.delegates.PermissionCheckerDelegate (declaration of 'com.hyj.latte.delegates.LatteDelegate' appears in /data/app/com.hyj.festec.debug-1/split_lib_slice_0_apk.apk)
at com.hyj.festec.example.ExampleActivity.setRootDelegate(ExampleActivity.java:39)
at com.hyj.latte.activities.ProxyActivity.initContainer(ProxyActivity.java:42)
at com.hyj.latte.activities.ProxyActivity.onCreate(ProxyActivity.java:34)
at com.hyj.festec.example.ExampleActivity.onCreate(ExampleActivity.java:26)
at android.app.Activity.performCreate(Activity.java:6355)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2467)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2574)
at android.app.ActivityThread.access$1100(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1425)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5684)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
Caused by: java.lang.VerifyError: Verifier rejected class com.hyj.latte.delegates.PermissionCheckerDelegate due to bad method java.lang.Object com.hyj.latte.delegates.PermissionCheckerDelegate.access$super(com.hyj.latte.delegates.PermissionCheckerDelegate, java.lang.String, java.lang.Object[]) (declaration of 'com.hyj.latte.delegates.PermissionCheckerDelegate' appears in /data/app/com.hyj.festec.debug-1/split_lib_slice_0_apk.apk)
at com.hyj.festec.example.ExampleActivity.setRootDelegate(ExampleActivity.java:39)
at com.hyj.latte.activities.ProxyActivity.initContainer(ProxyActivity.java:42)
at com.hyj.latte.activities.ProxyActivity.onCreate(ProxyActivity.java:34)
at com.hyj.festec.example.ExampleActivity.onCreate(ExampleActivity.java:26)
at android.app.Activity.performCreate(Activity.java:6355)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2467)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2574)
at android.app.ActivityThread.access$1100(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1425)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5684)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
没有找到问题所在,请老师指点
写回答
1回答
-
凌伊
提问者
2018-12-02
真的是太神奇了,我clean一把就OK了,蒸的想不通
00
相似问题