[英]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,因此
+
to add one. +
来添加一个。 Give it a name of Android SDK , 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下定义的实际位置)。 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 个步骤:
Open File -> Project Structure -> Project打开文件->项目结构->项目
• see if SDK not Selected.. • 查看是否未选择 SDK..
Select any latest SDK OR Select Supported version for your system.为您的系统选择任何最新的 SDK或选择支持的版本。
Then Open File -> Invalid Caches OR Restart Select.然后打开文件- >无效缓存或重新启动选择。
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.