我使用Android Studio3.4调试Launcher3,显示错误:无法连接到远程进程。中止调试会话。
我下载了Launcher3代码。
从这里开始:https://android.googlesource.com/platform/packages/apps/Launcher3/+/android-8.1.0_r61
我使用Android Studio3.4构建此项目。 是成功。
但是我调试了这个项目,Android Studio显示了这个错误 无法连接到远程进程。中止调试会话。
然后在manifest.xml中设置android:debuggable =“ true”
此错误消息:
.....
Waiting for application to come online: com.android.launcher3 | com.android.launcher3.tests
Connecting to com.android.launcher3
Waiting for application to start debug server
Waiting for application to come online: com.android.launcher3 | com.android.launcher3.tests
Connecting to com.android.launcher3
Waiting for application to start debug server
Waiting for application to come online: com.android.launcher3 | com.android.launcher3.tests
Connecting to com.android.launcher3
Waiting for application to start debug server
Waiting for application to come online: com.android.launcher3 | com.android.launcher3.tests
Could not connect to remote process. Aborting debug session.
现在我尝试调试helloworld项目,成功了。
但是将“启动选项”更改为“无”,显示“无法连接到远程进程”。中止调试会话
所以我认为调试没有默认活动项目是错误的。
但是如何调试没有默认活动的项目?