无法在Android Studio模拟器中加载应用程序 [英] Unable to load application in Android Studio emulator

查看:112
本文介绍了无法在Android Studio模拟器中加载应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I can't open the application I'm developing in Android Studio emulator, It is showing the following message in the log

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监听的端口

Following is the port listening by adb

adb 14528 unnikrishnan.b 10u  IPv4 0x7e537943f4599ac9  0t0  TCP localhost:5037 (LISTEN)

这是在我升级到android studio 3.1.2之后发生的.我该如何解决这个问题?

This happened after I upgraded to android studio 3.1.2. How I can fix this issue?

谢谢,Unnikrishnan B.

Thanks, Unnikrishnan B.

推荐答案

可能是由于文件etc/host中的IP地址引起的,有时您输入一个附加值进行测试并且未将其删除,则必须检查您的文件

can be caused by an ip address in the file etc / host, sometimes you enter an additional to make tests and it is not deleted, you must check that in your file this

127.0.0.1 localhost
255.255.255.255 broadcasthost
:: 1 localhost

您还可以ping地址127.0.0.1以检查答案, $ ping本地主机

you can also ping the address 127.0.0.1 to check for an answer, $ ping localhost

可以帮助您的其他信息

https://issuetracker.google.com/issues/37126279

这篇关于无法在Android Studio模拟器中加载应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆