maoabc / nmmp

dex-vm used to protect the android classes.dex file
780 stars 269 forks source link

对aar中acitivity的onCreate方法加固后Crash,onCreate中findViewById对控件添加了点击事件 #66

Open demomath opened 1 year ago

demomath commented 1 year ago

Caused by: java.lang.ArithmeticException: divide by zero at com.demo.test2.Test2Activity.onCreate(Native Method) at android.app.Activity.performCreate(Activity.java:7232) at android.app.Activity.performCreate(Activity.java:7221) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)

maoabc commented 1 year ago

没代码,没加固前后对比。 这个异常看着像代码本身的错误,除以0了。点击不点击事件基本没什么影响,只要处理生成的内部类class文件就行。

frankgogoland commented 1 year ago

aar加固还是很好用得,已经应用在产品上了,感谢作者。