我的即时应用程序运行正常,但是我无法对其进行调试。这是我的调试日志输出:
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 5或更高版本的设备,因为android 5之前的版本中没有调试功能。