等待进程出现在设备上超时 [英] Timed out waiting for process to appear on device

查看:42
本文介绍了等待进程出现在设备上超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 Android Studio 在设备或模拟器上运行或调试应用程序时遇到以下问题.应用程序已安装,但未在设备(或模拟器)上启动.在运行窗口中,我可以看到以下内容:

I am having the following problem when running or debugging apps on a device or emulator with Android Studio. The application is installed but it is not started on the device (or emulator). In the Run window I can see the following:

在设备上启动应用.正在等待进程上线...

Launching app on device. Waiting for process to come online...

一段时间后,我看到以下内容:等待进程出现在设备"上超时...

and after some time I see the following: Timed out waiting for process to appear on 'device'...

我附上了显示问题的屏幕截图.

I have attached a screenshot that shows the problem.

问题是最近开始的.我使用的是最新版本的 Android Studio (3.5.1) 和运行 Android 10 的 Google Pixel 设备,但问题发生在运行以前版本的 Android 的模拟器和其他设备上.该问题也发生在两台不同的计算机上,使用不同的 Android 应用程序和设备 - 共同点是 Android studio.最后,问题似乎是在我将 Android Studio 更新到 3.5 后开始的.

The problem started recently. I am using the latest version of Android studio (3.5.1) and a Google Pixel device running Android 10 but the problem happens on emulators and other devices running previous versions of Android. The problem also happens on two different computers, with different Android applications and devices - the common factor is Android studio. Finally, the problem seems to have started after I updated Android Studio to 3.5.

有谁知道如何解决这个问题?我尝试了很多事情(清除缓存、重建、失效和重新启动等)都没有成功.

Does anyone know how to fix this problem? I have tried many things (clear cache, rebuild, invalidate and restart, etc) without success.

有什么想法吗?

推荐答案

我通过卸载 Android studio、删除用户文件夹中的所有相关文件(包括 gradle 缓存文件)并安装最新版本的 Android studio 来解决这个问题.几个月后,问题似乎已得到解决.请注意,我现在使用的是 Android Studio 4.1.

I managed to fix the problem by uninstalling Android studio, deleting all relevant files in the user folder (including gradle cached files) and installing the latest version of Android studio. The problem seems to have been fixed after several months. Note that I am now using Android Studio 4.1.

这篇关于等待进程出现在设备上超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆