Programmers learn & share
0 votes
109 views

Problem :

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

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 (36.1k points)  
edited by
2,187 questions
2,514 answers
59 comments
241 users