it gives me an android.os.NetworkOnMainThreadExcep...
# android
m
it gives me an android.os.NetworkOnMainThreadException
stackoverflow 4
g
You obviously run some network request on MainThread. LiveData doesn’t run your computation on a separate thread. Run it on a separate thread or use some async network client (like okhttp)
👍 1
Also not related to Kotlin
👍 4