I am programming an Android app, and when the app tries to access a URL, I got this error message: “… nested exception is java.net.SocketException: Permission denied”. After some googling, turns out, the following line needs to be added into AndroidManifest.xml (outside application tag) to enable android app’s internet access)
here’s what helped me.