I've import Jsoup into my project, everything is okay until this time. But as I trying to connect and URL, I got this error:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test/com.example.test.MainActivity}:android.os.NetworkOnMainThreadException
I've added permission:
<uses-permission android:name="android.permission.INTERNET"/>
This line causes the error:
var doc = Jsoup.connect("https://google.com").get()
That's it. I've searched on stack overflow but I can not solve it.