无法在Android Studio emulator中加载应用程序

无法在Android Studio emulator中加载应用程序,android,android-studio,Android,Android Studio,我无法打开在Android Studio emulator中开发的应用程序,它在日志中显示以下消息 Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the

我无法打开在Android Studio emulator中开发的应用程序,它在日志中显示以下消息

Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences.

Unable to open connection to: localhost/17.253.38.253:5037, due to: java.net.ConnectException: Operation timed out
以下是adb监听的端口

adb 14528 unnikrishnan.b 10u  IPv4 0x7e537943f4599ac9  0t0  TCP localhost:5037 (LISTEN)
这是在我升级到android studio 3.1.2之后发生的。我如何解决这个问题

谢谢,
Unnikrishnan B.

可能是由文件etc/host中的ip地址引起的,有时您输入一个额外的来进行测试,但它没有被删除,您必须在您的文件中检查此

127.0.0.1 localhost
255.255.255.255 broadcasthost
:: 1 localhost
您还可以ping地址127.0.0.1以检查答案,
$ping localhost

可以帮助您的其他信息


可能是由于文件etc/host中的ip地址引起的,有时您输入了一个附加的ip地址以进行测试,但该ip地址未被删除,您必须在文件中检查此ip地址

127.0.0.1 localhost
255.255.255.255 broadcasthost
:: 1 localhost
您还可以ping地址127.0.0.1以检查答案,
$ping localhost

可以帮助您的其他信息


ping localhost ping localhost(127.0.0.1):56个数据字节127.0.0.1中的64个字节:icmp_seq=0 ttl=64 time=0.039 ms
这是什么IP 17.253.38.253。是我在什么地方配置的东西吗。我应该更改它吗?尝试将文件设置为127.0.0.1 localhost 255.255.255.255 broadcasthost::1 localhost。但是,请使用您拥有的此ip进行备份谢谢您的帮助!它起作用了。我备份了我的主机文件,创建了一个只有
127.0.0.1 localhost
的新文件,工作正常。
ping localhost ping localhost(127.0.0.1):56个数据字节127.0.0.1中的64个字节:icmp_seq=0 ttl=64 time=0.039 ms
这是什么IP 17.253.38.253。是我在什么地方配置的东西吗。我应该更改它吗?尝试将文件设置为127.0.0.1 localhost 255.255.255.255 broadcasthost::1 localhost。但是,请使用您拥有的此ip进行备份谢谢您的帮助!它起作用了。我备份了我的主机文件,创建了一个只有
127.0.0.1 localhost
的新文件,工作正常。