简体   繁体   English

Android Studio:“初始化 ADB 时出错:找不到 Android 调试桥”

[英]Android Studio: "Error initializing ADB: Android Debug Bridge not found"

I've installed Android Studio 3.0, and have compiled and run applications successfully.我已经安装了 Android Studio 3.0,并且已经成功编译并运行了应用程序。

Device File explorer pane has the above error message in red, and nothing else.设备文件资源管理器窗格以红色显示上述错误消息,仅此而已。

Each Android Studio project requires information as to what SDK is to be used, and where it is located. 每个Android Studio项目都需要有关使用什么SDK及其位置的信息。 The overall configuration defined in the SDK Manager under the tools menu is not enough, and it is used seemly to download and install the necessary SDK, so 在工具菜单下的“ SDK管理器”中定义的总体配置还不够,它似乎用于下载和安装必要的SDK,因此

  • make sure you have Android SDK installed. 确保已安装Android SDK。
  • Now opened or create a project (open an APK file for instance), 现在打开或创建一个项目(例如,打开一个APK文件),
  • then follow these steps to define the SDK for the project: 然后按照以下步骤为项目定义SDK:
    1. Under File -> Project Structure , select SDKs under Platform Settings . 在“ 文件”->“项目结构”下 ,在“ 平台设置”下选择“ SDK
    2. If you don't have an Android SDK item in the right next pane, then click on the green + to add one. 如果在右下一个窗格中没有Android SDK项,则单击绿色+来添加一个。 Give it a name of Android SDK , 为它命名为Android SDK
    3. and edit the path to c:\\users\\yourusername\\appdata\\local\\android\\sdk (or the actual location as defined under SDK Manager). 并将路径编辑为c:\\users\\yourusername\\appdata\\local\\android\\sdk (或SDK Manager下定义的实际位置)。
    4. Next, still under Project Settings , select Project , and 接下来,仍在“ 项目设置”下 ,选择“ 项目” ,然后
    5. in the right next pane under "Project SDK" select the new project SDK that you just created. 在“项目SDK”下的右下窗格中,选择刚创建的新项目SDK。
    6. Save. 救。

Your project is configured. 您的项目已配置。 Now open task manager and kill any existing adb.exe processes. 现在打开任务管理器,并杀死所有现有的adb.exe进程。 Android Studio is now ready to work with ADB. Android Studio现在可以与ADB一起使用了。

Test by opening the Device File Explorer (this is a vertical tab on the very right bottom edge of AS), or test by selecting the Attach debugger to Android Process button, and you should see your Android Device. 通过打开设备文件资源管理器 (这是AS右下角的垂直选项卡)进行测试,或者通过选择将调试器附加Android进程按钮进行测试,您应该会看到您的Android设备。

If ADB doesn't communicate with your Android device, check to see if you have installed the Android USB driver . 如果ADB无法与您的Android设备通信,请检查是否已安装Android USB驱动程序 Also, the phone needs to be in developer mode for ADB to work with it. 另外,电话必须处于开发人员模式,ADB才能使用它。

Last point, I have had more success with AS/ADB when I launch AS with Administrator privileges. 最后一点,当我以管理员权限启动AS时,我在AS / ADB上取得了更大的成功。 I hope this information is helpful to someone. 我希望这些信息对某人有帮助。

You might not have installed the ADB drivers. 您可能尚未安装ADB驱动程序。 It must be causing the IDE error to occur. 这一定是导致IDE错误发生的原因。 Try to install the ADB (Google USB Drivers from the Android SDK Manager provided in Android Studio). 尝试安装ADB(Android Studio中提供的Android SDK Manager中的Google USB驱动程序)。

Solution of Android Debug Bridge not found.找不到Android Debug Bridge的解决方法。

Simple following 4 Steps :简单的以下 4 个步骤:

  1. Open File -> Project Structure -> Project打开文件->项目结构->项目

    • see if SDK not Selected.. • 查看是否未选择 SDK..

    在此处输入图片说明

  2. Select any latest SDK OR Select Supported version for your system.为您的系统选择任何最新的 SDK选择支持的版本。

    在此处输入图片说明

  3. Then Open File -> Invalid Caches OR Restart Select.然后打开文件- >无效缓存或重新启动选择。

    在此处输入图片说明

  4. You can See ADB Error Goes and Emulators Function on the Screen.您可以在屏幕上看到 ADB Error Goes 和 Emulators Function。

    在此处输入图片说明

☻♥ Done. ☻♥ 完成。 Keep Code.保留代码。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我在初始化ADB时出错:Mac上未找到Android debud bridge消息。 我该怎么办? - I have an error initializing ADB : Android debud bridge not found message on my mac . What should i do? 错误:无法在Android Studio中获取调试桥 - Error:Unable to obtain debug bridge in android studio Android Studio未与adb GLIBC通信...未找到错误 - Android Studio not communicating with adb GLIBC … not found error Android Debug Bridge(adb)命令行工具存在于$ PATH中,但在linux中找不到“command not found” - Android Debug Bridge (adb) command line tool exists in $PATH, but “command not found” in linux 初始化 ADB 时出错:无法创建调试桥:无法启动 ADB 服务器 - error initializing ADB : unable to create debug bridge : unable to start ADB server 初始化 ADB 时出错:无法创建调试桥:无法启动 ADB 服务器 - Error initializing ADB: Unable to create Debug Bridge: Unable to start ADB server Android Studio显示对话框“无法创建调试桥:无法启动adb服务器:无法获取'adb版''的结果 - Android Studio show the dialog “unable to create debug bridge : unable to start adb server: unable to obtain result of 'adb version'” Android Studio错误正在运行的应用程序:无法获取调试桥 - Android Studio error running app: Unable to obtain debug bridge Android Studio 冻结在“正在初始化 ADB...” - Android Studio freezes on "Initializing ADB..." Android Studio中的ADB错误 - adb error in android studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM