当前位置: 代码迷 >> 综合 >> unable to connect to adb.check the event log for a possible issue Android Studio
  详细解决方案

unable to connect to adb.check the event log for a possible issue Android Studio

热度:4   发布时间:2024-01-13 06:52:27.0

unable to connect to adb.check the event log for a possible issue Android Studio

更新了Android Studio3.4的朋友可能会遇到这样一个问题,尝试运行app的时候提示无法连接adb
unable to connect to adb.check the event log for a possible issue, verify that localhost entry is pointing to 127.0.0.1 or:: 1 for ipv4 or ipv6
错误提示
博主我看到这句话凭着捉鸡的英语大概看懂了,就是说无法连接ADB,请查看日志或者确定localhost是指向127.0.0.1或者::1
我第一时间想到的是去修改host,设置localhost指向127.0.0.1和::1,但无果。

于是去谷歌搜索,终于让我找到解决办法了,思路是重新安装platform-tools

  1. 点击https://dl.google.com/android/repository/platform-tools_r26.0.0-windows.zip下载platform-tools
  2. 解压platform-tools_r26.0.0-windows.zip
  3. 打开文件夹"C:\Users\你的用户名\AppData\Local\Android\Sdk"删除 “Platform tools” 文件夹,删不掉的可以用Wise Force Deleter或360强力删除
  4. 把刚刚解压的文件夹复制到这个目录

博主的电脑是Win7系统,64位,应该只要是Windows系统都适合这个办法,操作期间我也没关闭Android Studio(还用强力删除…就是这么暴力)

另附上我在谷歌搜到的解决办法原文地址:https://stackoverflow.com/questions/55762216/not-able-to-connect-adb-after-upgrate-android-studio-to-3-4

  相关解决方案