Android Studio always disconnect immediately after beginning “debug”

爱⌒轻易说出口 提交于 2019-12-30 08:33:14

问题


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

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

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.


回答1:


I finally solved it!

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.



来源:https://stackoverflow.com/questions/27905119/android-studio-always-disconnect-immediately-after-beginning-debug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!