簡體   English   中英

嘗試調試 android 即時應用程序時如何連接到調試進程?

[英]How to connect to debug process when trying to debug android instant app?

我的即時應用程序啟動良好,但我無法調試它。 這是我的調試日志 output:

    Waiting for application to start debug server
    Waiting for application to come online: com.example.myapp.test | com.example.myapp
    Connecting to com.example.myapp
    Waiting for application to start debug server
    Waiting for application to come online: com.example.myapp.test | com.example.myapp
    Connecting to com.example.myapp
    Waiting for application to start debug server
    Waiting for application to come online: com.example.myapp.test | com.example.myapp
    Connecting to com.example.myapp
Could not connect to remote process. Aborting debug session

我嘗試了這個相關問題中給出的公認答案,但沒有運氣。 我還嘗試了將調試器附加到 Android 進程選項,但它不起作用。

編輯:我正在使用真實設備(Api 28)和模擬器(Api 29)但沒有成功。

minSdkVersion 19
targetSdkVersion 29

有什么建議么?

確保您使用的是 android 5 或更高版本的器件,因為在 android 5 之前的版本中無法進行調試。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM