[在尝试调试android Instant App时如何连接到调试过程?

问题描述 投票:0回答:1

我的即时应用程序运行正常,但是我无法对其进行调试。这是我的调试日志输出:

    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

我尝试了在this相关问题中给出的公认答案,但没有好运。我也尝试了将调试器附加到Android进程选项,但是它不起作用。

编辑:我同时使用真实设备(Api 28)和仿真器(Api 29)。

minSdkVersion 19
targetSdkVersion 29

有什么建议吗?

android android-studio android-instant-apps android-debug
1个回答
0
投票

请确保您使用的是Android 5或更高版本的设备,因为android 5之前的版本中没有调试功能。

© www.soinside.com 2019 - 2024. All rights reserved.