zoukankan      html  css  js  c++  java
  • Android Studio 点运行启用时,列表中不显示虚拟机,但是实际上在AVD Manager中已经添加了2个虚拟设备了

    Android Studio 点运行启用时,列表中不显示虚拟机,但是实际上在AVD Manager中已经添加了2个虚拟设备了

    百度上找了一下方法,

    情况出现:
    打开androidstudio,一直连接不上电脑,提示:Unable to start adb server: error: protocol fault (couldn't read status): Connection reset by peer


    问题原因:

    --------------------------------------------------------------------------------
    大多数情况是5037端口被占用。5037为adb默认端口。
    --------------------------------------------------------------------------------

    解决办法:

    ------------------------------------------------------------------------------------------
    查看哪个程序占用了adb端口,结束这个程序,然后重启adb就好了。

    1.打开cmd,切换到adb目录

    CD  E:

    CD E: oolsdkplatform-tools

    2.使用命令:netstat -aon|findstr "5037"  找到占用5037端口的进程PID。


    3.使用命令:tasklist|findstr "6292"  通过PID找出进程。


    4.调出任务管理器,找到这个进程,结束进程。

      这一步不能忘记了


    5.使用命令:adb start-server 启动adb就行了

    然后再切换到 Android Studio 点运行按钮,就可以显示 AVD的列表了
     

  • 相关阅读:
    oracle基础~ash报告管理
    django基础-bootstarp
    django基础~admin入门
    django基础~jquery交互
    oracle基础~RAC-grid搭建
    Oracle基础~RAC搭建准备二
    oracle基础~RAC搭建准备一
    oracle基础~补丁安装
    环境准备、框架认识、新建maven项目和配置tomcat
    python线程问题、深浅拷贝、属性动态设置
  • 原文地址:https://www.cnblogs.com/gfwei/p/11737504.html
Copyright © 2011-2022 走看看