运行 android 仪器测试时等待进程出现超时

Timed out waiting for process to appear while running android instrumentation test

我按照本文档 (https://developer.android.com/training/basics/fragments/testing#create-graphical) 中的示例来测试片段。但它不工作。它给出了这个消息 - Timed out waiting for process to appear on emulator. 请帮我。我一直坚持这个

我不知道发生了什么问题。我也尝试了堆栈溢出的所有不同解决方案,但没有成功。经过 3 天漫长的挫折之后,我也完全卸载了带有 SDK 的 android studio,并重新安装了它。现在可以使用了。