用AS做实验作业,运行一直没问题,昨晚突然模拟器不能用了,查了挺久终于解决,这里记录一下:
程序运行界面:
adb工具即Android Debug Bridge tools(安卓调试桥工具),是一个命令行窗口,用于通过电脑端与模拟器或者真实设备交互。Android SDK下的platform-tools目录中有adb.exe。这里在cmd下使用adb命令,查看已连接的设备:
adb shell
adb devices
关于adb,更多详情参考:https://zhidao.baidu.com/question/582441101.html
多出了个emulator-5554,adb启动就连接5555端口,其期望自动为用户连接本机的emulator,adb与emulator之间是tcp连接,如果有程序监听5555端口就会被认为是emulator。详情请看:https://blog.csdn.net/span76/article/details/9293937
查看5555端口:
在任务管理器中找到PID为15028的进程结束掉:
再重新运行一下:
谢天谢地终于好了