java.lang.management not available on Android
neroux opened this issue · 2 comments
neroux commented
@igr, it would appear as if the newest Android Studio (or one of its libraries) was not too fond of the use of java.lang.management.ManagementFactory
in jodd.util.SystemInfo
The error message is
Missing class java.lang.management.ManagementFactory (referenced from: long jodd.util.SystemInfo.getCurrentPID())
Missing class java.lang.management.RuntimeMXBean (referenced from: long jodd.util.SystemInfo.getCurrentPID())
That seems to be a general issue with that package on Android -> https://stackoverflow.com/a/19595885 and Kotlin/kotlinx.coroutines#959
It's possible to "skip" that error, so it's not a complete show-stopper. Rather a heads-up :)
igr commented
Maybe I can just remove that method, as on Java9 there is a new way anyway: long pid = ProcessHandle.current().pid();
igr commented
6.2.1. released:)