Android Studio 总是在开始“调试"后立即断开连接 [英] Android Studio always disconnect immediately after beginning "debug"

查看:178
本文介绍了Android Studio 总是在开始“调试"后立即断开连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我尝试使用 Android Studio 调试任何项目时,应用程序都不会启动,并且控制台立即给出以下消息:

Every time I try to debug any project with Android Studio, the app does not start, and immediately the console gives following message:

连接目标虚拟机,地址:'localhost:8603',传输:'socket'
测试运行开始与目标VM断开连接,地址:'localhost:8603',传输:'socket'

Connected to the target VM, address: 'localhost:8603', transport: 'socket'
Test running startedDisconnected from the target VM, address: 'localhost:8603', transport: 'socket'

我通常尝试在我的 HTC Desire Z 和 Android 2.3.3 设备上进行调试,我记得使用 Eclipse IDE 时调试"工作没有任何问题.

I generally try to debug on my HTC Desire Z with Android 2.3.3 device and I remember that with Eclipse IDE the "debugging" works without any issues.

推荐答案

我终于解决了!

问题是在开始和调试按钮的左侧,配置菜单设置为测试.只需将其放在 App 上即可使用.

The problem was that at the left of start and debug button, the configuration menu was set to test. Just put it on App and now it works.

这篇关于Android Studio 总是在开始“调试"后立即断开连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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