cuid-java icon indicating copy to clipboard operation
cuid-java copied to clipboard

Support for Android

Open ZakTaccardi opened this issue 9 years ago • 2 comments

E/UncaughtException: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/management/ManagementFactory;
                                                                                       at cool.graph.cuid.Cuid.getHostInfo(Cuid.java:24)
                                                                                       at cool.graph.cuid.Cuid.getFingerprint(Cuid.java:34)
                                                                                       at cool.graph.cuid.Cuid.<clinit>(Cuid.java:18)

ZakTaccardi avatar Aug 04 '16 15:08 ZakTaccardi

Thanks for the report, I will have a look next week.

marktani avatar Aug 04 '16 16:08 marktani

ManagementFactory is not a part of the VM Android is running on, but a part of the regular JVM. Right now, I don't see a good way to support both vanilla Java and Android in the same library. Maybe you got an idea? Feel free to create a PR if you've come up with a solution.

marktani avatar Aug 08 '16 09:08 marktani