Android app cannot access internet, here’s the fix

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.

This entry was posted in android. Bookmark the permalink.

Leave a comment