I've got a library which has a (I presume) hanging...
# android
r
I've got a library which has a (I presume) hanging coroutine somewhere, but there's no https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-debug/ - is there a good way to figure out where it hangs?
f
I’m not very familiar with this;
Copy code
Debug agent and Android
Android runtime does not support Instrument API necessary for kotlinx-coroutines-debug to function, triggering java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/management/ManagementFactory;, and it is not possible to use coroutine debugger along with Android emulator.
So seems it doesn’t work on Android; Maybe you can run the relevant code on the PC instead? For example using unit testing; Good luck!
r
It's a bluetooth library specific to Android, so probably not laugh cry face palm