2016-12-27 56 views
4

我無法調試我的應用程序。當我按下Android Studio中調試按鈕,我得到這個消息告訴我:目標設備不支持'run-as'命令

目標設備不支持「運行爲」命令:

target device does not supoort run as command

的瞭解更多的鏈接導致我Here,但我不能看到任何有助於我解決問題的東西。

在我的設備我看到一個對話框,此消息:

申請正在等待調試器附加

和應用程序無法啓動!

Application is waiting for debugger to attach

我試過到目前爲止:

  1. 執行清理和重建
  2. 重新啓動的Android Studio和設備

我不知道這個問題關係到我設備(三星Galaxy A7)或不,但我記得我打了其他應用程序在這個裝置。 這是在android工作室或我的設備的軟件中的錯誤?

回答

2

按下「Attach debuger to Android process」按鈕解決了我的問題,並將dubuger連接到我的應用程序。我只是不知道爲什麼當我首先按下「調試應用程序」按鈕時調試器沒有連接!

enter image description here

enter image description here