java.net.SocketException: Permission denied解决

1. 在AndroidMainfest.xml中加入以下

 

 

2. AndroidMainfest.xml

 

[xhtml] view plain copy
    1. xml version="1.0" encoding="utf-8"?>  
    2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"  
    3.       package="android.test"  
    4.       android:versionCode="1"  
    5.       android:versionName="1.0">  
    6.     <uses-sdk android:minSdkVersion="7">uses-sdk>   
    7.     <application android:icon="@drawable/icon" android:label="@string/app_name">  
    8.         <activity android:name=".Main"  
    9.                   android:label="@string/app_name">  
    10.             <intent-filter>  
    11.                 <action android:name="android.intent.action.MAIN" />  
    12.                 <category android:name="android.intent.category.LAUNCHER" />  
    13.             intent-filter>  
    14.         activity>  
    15.     application>  
    16.    
    17. manifest> 

转载于:https://www.cnblogs.com/leischen/archive/2013/02/25/2931950.html

你可能感兴趣的:(java.net.SocketException: Permission denied解决)