Open thrones19 opened 5 years ago
下面是错误日志
07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at com.meituan.robust.utils.EnhancedRobustUtils.invokeReflectMethod(EnhancedRobustUtils.java:34) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at com.mqtt.mqttdemo.robust.patch.ModifyActivityPatch.onCreate(ModifyActivityPatch.java:47) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at com.mqtt.mqttdemo.robust.patch.ModifyActivityPatchControl.accessDispatch(PatchTemplate.java) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at com.meituan.robust.PatchProxy.accessDispatch(PatchProxy.java:94) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at com.meituan.robust.PatchProxy.proxy(PatchProxy.java:44) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at com.mqtt.mqttdemo.ModifyActivity.onCreate(ModifyActivity.java) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at android.app.Activity.performCreate(Activity.java:6303) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2398) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2505) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at android.app.ActivityThread.access$1000(ActivityThread.java:153) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1369) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at android.os.Looper.loop(Looper.java:154) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5469) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at java.lang.reflect.Method.invoke(Native Method) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628) 07-08 16:12:09.643 13326-13326/com.mqtt.mqttdemo D/robust: invoke method is No: 17 refleshIndePiosition
开启混淆又可以用了 ,这个跟混淆有关系吗
+1
没有开混淆不行啊,why
使用Add标签时包异常 ,但Modify标签是正常的
手机型号:如:小米(如是编译异常,则可以不填)
手机系统版本:如:Android 7.0 (如是编译异常,则可以不填)
Robust版本:如:0.4.90
Gradle版本:如:4.4
堆栈/日志:2019-07-08 15:23:05.232 11556-11556/? D/robust: invoke method is com.mqtt.mqttdemo.robust.patch.ModifyActivityPatch.onCreate(android.os.Bundle) 2019-07-08 15:23:05.232 11556-11556/? D/robust: invoke android.support.v7.app.AppCompatActivity.onCreate(android.os.Bundle) staticRobust method 2019-07-08 15:23:05.265 11556-11556/? D/robust: invoke method is No: 1 setContentView 2019-07-08 15:23:05.266 11556-11556/? D/robust: invoke method is No: 2 findViewById 2019-07-08 15:23:05.266 11556-11556/? D/robust: inner Class new No: 3 2019-07-08 15:23:05.272 11556-11556/? D/robust: invoke method is No: 4 setOnClickListener 2019-07-08 15:23:05.272 11556-11556/? D/robust: invoke method is No: 5 findViewById 2019-07-08 15:23:05.272 11556-11556/? D/robust: inner Class new No: 6 2019-07-08 15:23:05.275 11556-11556/? D/robust: invoke method is No: 7 setOnClickListener 2019-07-08 15:23:05.278 11556-11556/? D/robust: invoke method is No: 8 getPath 2019-07-08 15:23:05.279 11556-11556/? D/robust: invoke method is No: 9 append 2019-07-08 15:23:05.279 11556-11556/? D/robust: get static value is separator No: 10 2019-07-08 15:23:05.279 11556-11556/? D/robust: invoke method is No: 11 append 2019-07-08 15:23:05.279 11556-11556/? D/robust: invoke method is No: 12 append 2019-07-08 15:23:05.279 11556-11556/? D/robust: get static value is separator No: 13 2019-07-08 15:23:05.279 11556-11556/? D/robust: invoke method is No: 14 append 2019-07-08 15:23:05.279 11556-11556/? D/robust: invoke method is No: 15 append 2019-07-08 15:23:05.280 11556-11556/? D/robust: invoke method is No: 16 toString 2019-07-08 15:23:05.280 11556-11556/? D/sunshine: /storage/emulated/0/robust/patch 2019-07-08 15:23:05.292 11556-11556/? W/System.err: at com.meituan.robust.utils.EnhancedRobustUtils.invokeReflectMethod(EnhancedRobustUtils.java:34) 2019-07-08 15:23:05.292 11556-11556/? W/System.err: at com.mqtt.mqttdemo.robust.patch.ModifyActivityPatch.onCreate(ModifyActivityPatch.java:47) 2019-07-08 15:23:05.292 11556-11556/? W/System.err: at com.mqtt.mqttdemo.robust.patch.ModifyActivityPatchControl.accessDispatch(PatchTemplate.java) 2019-07-08 15:23:05.292 11556-11556/? W/System.err: at com.meituan.robust.PatchProxy.accessDispatch(PatchProxy.java:94) 2019-07-08 15:23:05.292 11556-11556/? W/System.err: at com.meituan.robust.PatchProxy.proxy(PatchProxy.java:44) 2019-07-08 15:23:05.292 11556-11556/? D/robust: invoke method is No: 17 refleshIndePiosition