Source Not Found. 很纠结的一个问题。

一段很简单的代码:

 1 String url = "http://10.122.10.197/r28crm/login.aspx?uid=yepl&pwd=1&t=t";
 2 try
 3 {
 4     DefaultHttpClient client = new DefaultHttpClient();
 5     HttpGet request = new HttpGet(url);
 6     HttpResponse response = client.execute(request);//每次调试到这一句就会出现Source Not Found.
 7     StatusLine status = response.getStatusLine();
 8     int statusCode = status.getStatusCode();
 9     switch(statusCode) {
10     case 200:
11         break;
12     }
13 }catch(ClientProtocolException ex) {
14                 
15 }catch(IOException ex){
16                 
17 }

我在AndroidManifest.xml有配置 

<uses-permission android:name="android.permission.INTERNET"/>

我找了好多资料都没能解决这个问题。求各位大侠指点。。另附上问题图片:

大家能指点下么?我这个是在模拟器里面用浏览器是能访问那个Url的。

吃鸡游戏
浏览 545回答 2
2回答

开满天机

hi men,it seems to not found zhe androvid.jar at zhe folder of D:\Program Files (x86)\adt-bondle-windows-x86_64\sdk\platforms\

偶然的你

Not because of this. the file is there.
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java