SocketException: Permission Denied?

后端 未结 2 1809
温柔的废话
温柔的废话 2021-02-06 21:00

My LogCat reads:

08-19 09:29:01.964: WARN/System.err(311): java.net.SocketException: Permission denied
08-19 09:29:02.204: WARN/System.err(311):     at org.apach         


        
2条回答
  •  不知归路
    2021-02-06 21:23

    You need to go to your Manifest file in your android application project then above application section next to other permissions add: android.permission.INTERNET

    Your manifest should look something like this:

    
    
    
    
    ....
    
    ...
    

    keep in mind value (android.permission.INTERNET) is case sensitive.

    Hope this saves you some time.

提交回复
热议问题