android,httpurlconnection错误

我从Android HttpURLConnection文档运行以下testingJava脚本:

URL url = new URL("http://www.android.com/"); HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); urlConnection.connect(); 

Eclipse(在我的Mac)告诉我,当我在Android模拟器中运行这个时出现系统错误:

01-13 13:44:32.767: WARN/System.err(1382): java.net.SocketException: Permission denied

(顺便说一下,当我在Objective-C / Cocoa中做同​​样的事情时,根本没有问题。)

问题是什么?

Solutions Collecting From Web of "android,httpurlconnection错误"