无法将adb Android Studio连接到3.4.1 [英] Not able to connect adb Android Studio to 3.4.1

查看:121
本文介绍了无法将adb Android Studio连接到3.4.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法连接到adb.检查事件日志中是否存在可能的问题,请验证localhost条目是否指向127.0.0.1或::对于ipv4或ipv6为1.

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.

在android设备上运行示例应用程序时出错.

Getting an error while running my sample application in android device.

全新安装android studio时出现ADB错误.

ADB error on a fresh installation of android studio.

推荐答案

最后,我得到了自己的问题的答案.这是由于某些Windows操作系统更新问题引起的.请按照以下步骤进行确认.

Finally I got answer for my own question. This is due to some Windows OS update issue. Please follow the below step to confirm.

  1. 转到C:\ Users \ bn \ AppData \ Local \ Android \ Sdk \ platform-tools
  2. 从此位置打开命令提示符,然后键入 adb设备
  3. 如果出现以下错误对话框,则说明问题出在您的Windows设置上,而不是Android Studio的任何问题.

adb命令错误

解决方案:

从下面的链接下载适用于Windows版本的软件包.就我而言,我已经下载了"Windows 8.1所有受支持的基于x64的版本"并安装了exe.安装完成后,请检查adb命令.它应该工作.

Download the package for your Windows version from below link. In my case I have downloaded "All supported x64-based versions of Windows 8.1" package and installed the exe. Once installation is complete check the adb command. It should work.

https://support.microsoft.com/zh-CN/help/2999226/update-for-universal-c-runtime-in-windows

这篇关于无法将adb Android Studio连接到3.4.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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