• Register
Log In
0 votes

Problem :

I am getting bellow error message

java.net.socketexception: socket failed: eacces (permission denied)

6.9k points

1 Answer

0 votes

Solution :

I had faced the issue and i changed permissions as bellow 
<uses-permission android:name="android.permission.INTERNET"/>

And also change your activity names as bellow

<activity android:name=".Addfriend"/>
    <activity android:name=".UpdateDetails"/>
    <activity android:name=".Details"/>
    <activity android:name=".Updateimage"/>
After doing above changes my issue got resolved.

Further Readings:

36.1k points

Related questions

0 votes
1 answer 156 views
Problem : Below error is very strange and I don't know how to reproduce it and how to fix the error. As I made the lot of searches but nothing was useful for me. &ldquo;Java.lang.securityexception: permission denied (missing internet permission?)&rdquo;.
asked Jan 21 jwilliam 3.9k points
0 votes
1 answer 128 views
Problem : I am getting below error while executing Android Code java.lang.securityexception: permission denied (missing internet permission?)
asked Oct 22, 2019 peterlaw 6.9k points
0 votes
1 answer 95 views
Problem : Currently I am trying to display a JSON content using a API key. But I am unable to get a authentication. I am facing below error in my JsonObject: &ldquo;Org.json.JSONException: Value Authorization of type java.lang.String cannot be converted to JSONObject&rdquo; In my ... to pass a API key and URL id to get my JSON response in a URL. I display a JSON content using a JSON array.
asked Feb 2 jwilliam 3.9k points
0 votes
1 answer 24 views
Problem: I am seeing "{writer,send_failed,{error,closed}}" error on server side and "java.net.SocketException: Connection reset by peer: socket write error" error on java client side intermittently. What could possibly go wrong here? Both server and ... rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:630) at com.rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:621) Please help me.
asked Mar 23 LizzyM 5.7k points
0 votes
1 answer 100 views
Problem : I am trying to implement an HTTP Server using Sockets but getting bellow error java net socketexception connection reset by peer socket write error
asked Oct 31, 2019 peterlaw 6.9k points