我无法调试我的应用程序.当我在
Android Studio中按下调试按钮时,我收到此消息告诉我:
The target device does not support the ‘run-as’ command:
“了解更多”链接将我引向Here,但我无法看到任何可以帮助我解决问题的方法.
在我的设备上,我看到一个包含此消息的对话框:
Application is waiting for debugger to attach
该应用程序无法启动!
到目前为止我尝试了什么:
>执行清洁和重建
>重启Android Studio和设备
我不确定这个问题是否与我的设备(三星Galaxy A7)有关,但我记得我在这个设备上使用了其他应用程序.
这是android studio或我设备软件中的错误吗?
最佳答案 按“将debuger附加到Android进程”按钮解决了我的问题并将dubuger连接到我的应用程序.我只是不知道为什么调试器在我第一次按“Debug App”按钮时没有附加!!!