简体   繁体   English

Tools-> Android->启用ADB服务的目的是什么?

[英]What is the purpose of Tools->Android->Enable ADB Service?

In order to have IDEA and DDMS connected to the same emulator, I had to disable this feature. 为了让IDEA和DDMS连接到同一个仿真器,我不得不禁用此功能。

What does it do? 它有什么作用? Is there a downside of this action? 这个行动有不利之处吗?

The ADB (Android Debug Bridge) is a service that IDEA uses for debugging Android code on an emulator or USB device. ADB(Android Debug Bridge)是IDEA用于在模拟器或USB设备上调试Android代码的服务。 This service can be used by only one application at a time. 该服务一次只能由一个应用程序使用。 DDMS tool uses ADB, too, so you need to disable ADB-IDEA connection if you want to use DDMS tool without closing IDEA. DDMS工具也使用ADB,因此如果要在不关闭IDEA的情况下使用DDMS工具,则需要禁用ADB-IDEA连接。 You won't be able to debug Android applications in IDEA if this service is disabled, but note that if you try to launch debugging IDEA will notify you that ADB service is disabled and offer to enable it again . 如果禁用此服务,您将无法在IDEA中调试Android应用程序,但请注意,如果您尝试启动调试, IDEA将通知您ADB服务已禁用并提供再次启用它 So there shouldn't be any problems after disabling this service. 因此,禁用此服务后应该没有任何问题。 You just need to do it before launching DDMS. 您只需在启动DDMS之前执行此操作。

ADB is the debugger for android. ADB是android的调试器。 You can only have one device connect to the debugger at a time. 您一次只能有一台设备连接到调试器。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM