Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开启混淆 #12

Closed
sanhou opened this issue Oct 28, 2021 · 3 comments
Closed

开启混淆 #12

sanhou opened this issue Oct 28, 2021 · 3 comments

Comments

@sanhou
Copy link

sanhou commented Oct 28, 2021

No pending exception expected: java.lang.NoSuchFieldError: no "I" field "sock" in class "Lcom/beetle/AsyncTCP;" or its superclasses
at boolean com.beetle.AsyncTCP.connect(java.lang.String, int) (AsyncTCP.java:-2)
at void com.beetle.im.IMService.o() (IMService.java:1052)
at void com.beetle.im.IMService.a(com.beetle.im.IMService) (IMService.java:52)
at void com.beetle.im.IMService$f.a() (IMService.java:185)
at void com.beetle.im.s$a.handleMessage(android.os.Message) (Timer.java:36)
at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:107)
at void android.os.Looper.loop() (Looper.java:213)
at void android.os.HandlerThread.run() (HandlerThread.java:67)

@sanhou
Copy link
Author

sanhou commented Oct 28, 2021

导入的library没有开启混淆,app开启混淆了,

@richmonkey
Copy link
Contributor

-keep class com.beetle.AsyncTCP {
*;
}

-keep interface com.beetle.TCPConnectCallback {
*;
}

-keep interface com.beetle.TCPReadCallback {
*;
}

@sanhou
Copy link
Author

sanhou commented Oct 29, 2021

👌,谢了

@sanhou sanhou closed this as completed Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants