Meituan-Dianping / Robust

Robust is an Android HotFix solution with high compatibility and high stability. Robust can fix bugs immediately without a reboot.
Apache License 2.0
4.43k stars 809 forks source link

新增类未出现在patch.jar中 #330

Open awxy opened 5 years ago

awxy commented 5 years ago

异常类型:app运行时异常

手机型号:如:Smartisan

手机系统版本:如:Android 7.0

Robust版本:如:0.4.87

Gradle版本:如:3.0.1

系统:如:Mac

堆栈/日志:

Caused by: java.lang.ClassNotFoundException: Didn't find class "operation.enmonster.com.gsoperation.gsmodules.gsmain.MyClick" on path: DexPathList[[zip file "/data/user/0/operation.enmonster.com.gsoperation/cache/robust/patch_temp.jar"],nativeLibraryDirectories=[/system/lib, /vendor/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:380) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at com.meituan.robust.patch.MyStoreActivityPatch.initView(MyStoreActivityPatch.java:152)  at com.meituan.robust.patch.MyStoreActivityPatchControl.accessDispatch(PatchTemplate.java)  at com.meituan.robust.PatchProxy.accessDispatch(PatchProxy.java:94)  at com.meituan.robust.PatchProxy.proxy(PatchProxy.java:44)  at operation.enmonster.com.gsoperation.gsmodules.gsmain.fragment.MyStoreActivity.initView(MyStoreActivity.java)  at com.enmonster.lib.common.base.ABaseActivity.onCreate(ABaseActivity.java:59)  at android.app.Activity.performCreate(Activity.java:6813)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2805)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2927)  at android.app.ActivityThread.-wrap12(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:159)  at android.app.ActivityThread.main(ActivityThread.java:6364) 

jjlan commented 5 years ago

robust这块有bug,包名不是com开头的新增类打不进去,可以自行修改下,比较简单