我可以运行我的应用程序,但无法通过 android studio 调试它

时间:2021-06-30 13:41:32

标签: java android android-studio debugging

在我的测试项目中,我可以运行我的应用程序,但无法调试它,当我运行我的应用程序时,apply changes and restart activity 按钮和 apply code changes 被禁用,report app 未检测到。

在应用程序窗口中,它会显示一个带有以下消息的对话框

application .... is waiting for the debugger to attach.

我尝试了以下操作:

  • 选择要调试的应用

  • android:debuggable="true" 在清单中

  • 构建中

    debug
    {
        debuggable true
    }
    
  • 尝试 adb kill server 并重新启动它

Issue snapshot

1 个答案:

答案 0 :(得分:0)

你可以使用

Attach Debugger to Android Process
相关问题