InputDispatcher:由于没有可触摸窗口或手势监视器而丢弃事件

Dim*_*zis 8 android android-emulator apple-m1

我在 M1 Max Macbook 上使用 Android 模拟器 (v30.9.4) 时遇到问题。有时,模拟器会停止接受当前前台 Activity(甚至可以是系统 Activity)中的触摸输入,而没有明确的模式。我不能 100% 确定这是因为 M1,但我在任何其他机器上从未遇到过这些问题。

Logcat 在活动中的每个点击上显示这些日志:

I/InputDispatcher: Dropping event because there is no touchable window or gesture monitor at (827, 950) in display 0.
I/InputDispatcher: Dropping event because there is no touched foreground window in display 0 or gesture monitor to receive it.
Run Code Online (Sandbox Code Playgroud)

我尝试过各种 AVD 配置、29/30/31 SDK 级别,包括使用 Google API 和不使用 Google API 的情况。快速启动已关闭。