Android Emulator不工作-org.apache.http.conn.ConnectTimeoutException:
我正在使用Eclipse(ADT),并创建了一个虚拟Android(4.4.2)Nexus设备。Android Emulator不工作-org.apache.http.conn.ConnectTimeoutException:,android,android-emulator,eclipse-adt,Android,Android Emulator,Eclipse Adt,我正在使用Eclipse(ADT),并创建了一个虚拟Android(4.4.2)Nexus设备。 我可以启动模拟器,但当我以>Android应用程序>选择模拟器作为目标运行时,它失败了。。我在logcat中看到以下错误(不确定日志中的10.1.1.100 IP和9401端口是什么): 如果有关系,我可以在物理设备上成功运行应用程序 [编辑1] 清除c:\users\meuser\.android目录后: 我仍然看到以下错误: java.net.UnknownHostException:
我可以启动模拟器,但当我以>Android应用程序>选择模拟器作为目标运行时,它失败了。。我在logcat中看到以下错误(不确定日志中的10.1.1.100 IP和9401端口是什么): 如果有关系,我可以在物理设备上成功运行应用程序 [编辑1]
清除c:\users\meuser\.android目录后: 我仍然看到以下错误:
java.net.UnknownHostException: prod2.rest-core.msg.yahoo.com
....
E/dalvikvm(8793): Could not find class 'com.google.android.gms.deviceconnection.a.c',
referenced from method com.google.android.gms.deviceconnection.a.a.<init>
...
Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.util.e.a
这不是应用程序问题,问题在于emulator
尝试从此路径
C:\Users\username\
中删除.android
文件夹,并在eclipse中创建新的emulator,然后重试.android
文件夹将再次创建。仍然没有成功:更新了问题。。与编辑1。请参见更改仿真器版本并重试
java.net.UnknownHostException: prod2.rest-core.msg.yahoo.com
....
E/dalvikvm(8793): Could not find class 'com.google.android.gms.deviceconnection.a.c',
referenced from method com.google.android.gms.deviceconnection.a.a.<init>
...
Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.util.e.a
Installing my.apk...
Installation error: Unknown failure
Please check logcat output for more details.
Launch canceled!