• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
9 views

Problem :

I am getting below error while executing Android Code
java.lang.securityexception: permission denied (missing internet permission?)
by (6.9k points)  

1 Answer

0 votes

Solution :

SecurityException: Permission denied (missing INTERNET permission?), it clearly indicates that you are not allowed to do networking. 

Usually it is either due to missing <uses-permission android:name="android.permission.INTERNET" /> entry in your AndroidManifest.xml file 

OR

As internet permission is granted at installation not at run time, by long standing, missed bug in Android framework that causes your app to be successfully installed, but without expected permission grant.

Further Readings:

https://github.com/square/okhttp/issues/3003

by (21.9k points)  
edited by
...