Android 混淆之后报异常

guqun 2020-11-23 777

本地做了 -keep class com.tencent.mars.**{*;} -kee_class cn.wildfirechat.client.**{*;}_ _设置,_但是还是报了异常

java.lang.UnsatisfiedLinkError: No implementation found for void com.tencent.mars.proto.ProtoLogic.registerMessageFlag(int, int) (tried Java_com_tencent_mars_proto_ProtoLogic_registerMessageFlag and Java_com_tencent_mars_proto_ProtoLogic_registerMessageFlag__II) at com.tencent.mars.proto.ProtoLogic.registerMessageFlag(Native Method) at cn.wildfirechat.client.ClientService$ClientServiceStub.registerMessageContent(ClientService.java:10) at cn.wildfirechat.client.ClientService.onCreate(ClientService.java:12) at android.app.ActivityThread.handleCreateService(ActivityThread.java:3342) at android.app.ActivityThread.-wrap4(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1680) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6518) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

最新回复 (2)
  • x86 2020-11-23
    引用 2
    请试下添加:

    -keepclassmembers class com.tenncent.mars.** {
      *;
    }
  • guqun 2020-11-25
    引用 3
    收到,谢谢啦
返回