Android中的adb是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10223065/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is adb in Android?
提问by siva636
I get the following errors when I try to run my Android program.
当我尝试运行我的 Android 程序时出现以下错误。
Please explain me What really adb
is, and how to restart it?
请解释一下究竟adb
是什么,以及如何重新启动它?
I am getting the following error
我收到以下错误
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
回答by Hailei
adb is Android Debug Bridge.
adb 是Android 调试桥。
To restart adb by command line:
通过命令行重启 adb:
adb kill-server
adb start-server
To restart adb in Eclipse:
在 Eclipse 中重新启动 adb:
- Window > Show View > Other... > Android/Devices
- When the view is showing: View Menu of "Devices" > Reset adb
- 窗口 > 显示视图 > 其他... > Android/设备
- 当视图显示时:“设备”的视图菜单 > 重置 adb
回答by Praveenkumar
Android Debug Bridge
Android 调试桥
Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. It is a client-server program that includes three components:
Android Debug Bridge (adb) 是一种多功能命令行工具,可让您与模拟器实例或连接的 Android 设备进行通信。它是一个客户端-服务器程序,包括三个组件:
- A client, which runs on your development machine. You can invoke a client from a shell by issuing an adb command. Other Android tools such as the ADT plugin and DDMS also create adb clients.
- A server, which runs as a background process on your development machine. The server manages communication between the client and the adb daemon running on an emulator or device.
- A daemon, which runs as a background process on each emulator or device instance.
- 在您的开发机器上运行的客户端。您可以通过发出 adb 命令从 shell 调用客户端。其他 Android 工具(例如 ADT 插件和 DDMS)也可以创建 adb 客户端。
- 一个服务器,在您的开发机器上作为后台进程运行。服务器管理客户端和运行在模拟器或设备上的 adb 守护进程之间的通信。
- 一个守护进程,在每个模拟器或设备实例上作为后台进程运行。
Restarting ADB
重启亚行
adb kill-server && adb start-server
By using above command, that'll restart the adb server. And, if you're using Eclipse
means, please see the below image -
通过使用上面的命令,这将重新启动 adb 服务器。而且,如果您使用的Eclipse
是手段,请参见下图 -
In your DDMS
one option is there for restarting the adb like in above image. Hope this helps you.
在您的DDMS
一个选项中,可以像上图那样重新启动 adb。希望这对你有帮助。
回答by Aniket Thakur
ADB stands for Android Debug Bridge.
ADB 代表Android 调试桥。
Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device.
Android Debug Bridge (adb) 是一种多功能命令行工具,可让您与模拟器实例或连接的 Android 设备进行通信。
In depth details can be found here.
可以在此处找到深入的详细信息。
As for restarting adb server you can execute following commands
至于重新启动 adb 服务器,您可以执行以下命令
adb kill-server
adb start-server
As for Eclipse simply close the IDE and restart/reopen. Infact restarting Eclipse should restart adb server as well.
至于 Eclipse,只需关闭 IDE 并重新启动/重新打开即可。事实上,重启 Eclipse 也应该重启 adb 服务器。
PS: Above link goes to my personal blog that has additional details on ADB.
PS:以上链接指向我的个人博客,其中包含有关 ADB 的其他详细信息。
回答by kip2
I saw this problem on Eclipse, and it reported that I needed to 'reset adb from the Device's view'. The adb kill&restart-server sequence didn't work for me, but I was successful with just disabling and then re-enabling the 'USB debugging' check box in the phone's Settings->Developer Options
我在 Eclipse 上看到了这个问题,它报告说我需要“从设备的视图中重置 adb”。adb kill&restart-server 序列对我不起作用,但我成功了,只需禁用然后重新启用手机设置->开发人员选项中的“USB调试”复选框
回答by semih
i also came across with this problem, i got this error please ensure that adb is correctly located “Users/semihozkoroglu/ADT/sdk/platform-tools/adb” and can be executed
我也遇到了这个问题,我遇到了这个错误,请确保 adb 正确位于“Users/semihozkoroglu/ADT/sdk/platform-tools/adb”并且可以执行
Click devices dropdown - > reset adb, its works..
单击设备下拉列表 - > 重置 adb,它的工作原理..
回答by Dinesh
ADB is a Android Debug Bridge.
ADB 是一个 Android 调试桥。
Following for more Details ADB
更多详情请关注亚行
http://www.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/
http://www.additivetips.com/mobile/what-is-adb-and-how-to-install-it-android/
http://developer.android.com/guide/developing/tools/adb.html
http://developer.android.com/guide/developing/tools/adb.html
Close And Open Eclipse,Adb is automatically restarted..!
关闭并打开 Eclipse,Adb 会自动重启..!
Thanks..!
谢谢..!