为什么DDMS将在Android Studio中禁用ADB集成 [英] Why DDMS will disable ADB integration in android studio

查看:357
本文介绍了为什么DDMS将在Android Studio中禁用ADB集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自昨天以来,我对一个新问题感到困惑。我现在正在使用DDMS在我的android设备上调试我的应用。过去,我似乎是从android studio即时运行该应用程序的,它发现我需要启用ADB集成,但并非经常如此。从昨晚开始,一旦启用ADB集成,ddms将无法从设备捕获日志,它会变为DDMS中的 Adb连接错误:远程主机强行关闭了现有连接。如果我重新启动DDMS,则会停用ADB集成功能,导致无法将应用传递到设备。如果启用它,DDMS将无法再次使用。我知道一定有类似端口冲突的问题,但是我完全不知道如何解决。
顺便说一句,我注意到工作室中还有另一个android显示器,它不是那么强大,我将不使用它。是由于没有两个监视器同时出现的原因吗?
非常感谢任何人的帮助

I was confused about a new problem since yesterday. I am now using DDMS to debug my app on my android device. It used to appear that I instant run the app from android studio it notices me i need to enable ADB integration, but not often. Since last night, once I enable ADB integration, ddms will not be able to capture log from device it goes "Adb connection Error:An existing connection was forcibly closed by the remote host" in DDMS. and if I restart the DDMS, it will turn ADB integration disable which results I cant pass app to my device. if enable it, DDMS not working again. I know there must be something like port conflicted but i totally have no idea how to solve it. BTW, I noticed there is another android monitor in studio which is not so powerful, i am not going to use it. Is it the reason due to NO TWO MONITORS AT SAME TIME? many thanks for anyone's any help

推荐答案

我解决了这个问题,请在此处记录,以防有人见面同样的问题。由AS 2.0更新引起的问题,其中引入了一个新功能:热插拔代码(这将节省您构建应用程序的时间),但是,此功能将需要ADB集成以立即运行设备上先前版本的应用程序不需要。因此,如果您遇到此问题,只需进行设置=>构建,执行,部署=>即时运行=>取消选中启用即时运行以对depoly进行热交换代码/资源更改。
PS。如果可能,请选中此选项,因为此新功能非常有用。

I worked out it, just have a record here, in case someone meet same problem. The issue caused by AS 2.0 update which introduce a new feature: hot swap code (which will save you time to build the app) however, this feature will require ADB integration to 'instant run' the app on your device which the previous edition is not required. So if you met this problem, just go settings => Build, execution, deployment =>instant run => uncheck 'Enable Instant Run to hot swap code/resource changes on depoly'. PS. If it is possible, check this option, as this new feature is quite helpful.

这篇关于为什么DDMS将在Android Studio中禁用ADB集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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