-
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
Could not find class 'sun.misc.Cleaner' on android #2604
Comments
@darting can you try to use netty build from this branch: Please let me know if this works on android. |
How I can build the jar from this branch (https://github.com/netty/netty/tree/android_cleaner_fix)? |
Do it from the root
|
@darting I also have uploaded a jar for you for easier testing: https://drive.google.com/file/d/0Bz2WFwV0VRukM1hlcTlSajlWUzQ/edit?usp=sharing |
Hi, man, seems it can run on android now. Thanks very much for your help. |
@darting yay :) I will release a version with this fix today! Thanks for testing :) |
Motivation: When a user tries to use netty on android it currently fails with "Could not find class 'sun.misc.Cleaner'" Modification: Encapsulate sun.misc.Cleaner usage in extra class to workaround this isssue. Result: Netty can be used on android again
Motivation: When a user tries to use netty on android it currently fails with "Could not find class 'sun.misc.Cleaner'" Modification: Encapsulate sun.misc.Cleaner usage in extra class to workaround this isssue. Result: Netty can be used on android again
Motivation: When a user tries to use netty on android it currently fails with "Could not find class 'sun.misc.Cleaner'" Modification: Encapsulate sun.misc.Cleaner usage in extra class to workaround this isssue. Result: Netty can be used on android again
Motivation: When a user tries to use netty on android it currently fails with "Could not find class 'sun.misc.Cleaner'" Modification: Encapsulate sun.misc.Cleaner usage in extra class to workaround this isssue. Result: Netty can be used on android again
my netty version based on https://github.com/netty/netty/tree/d8d0bbfc26404836770d9e5409e36c77af5a427d
refer: #2599
06-26 17:28:20.722 8680-8680/com.myapplication E/dalvikvm﹕ Could not find class 'sun.misc.Cleaner', referenced from method io.netty.util.internal.PlatformDependent0.
06-26 17:28:20.727 8680-8680/com.myapplication E/dalvikvm﹕ Could not find class 'sun.misc.Cleaner', referenced from method io.netty.util.internal.PlatformDependent0.freeDirectBuffer
The text was updated successfully, but these errors were encountered: