Chrome 远程桌面和安卓模拟器

10

我使用Chrome远程连接到我的桌面电脑,该电脑运行着Android Studio。当我尝试从Android Studio启动模拟器时,我看到了虚拟设备窗口打开,但是设备没有启动。当我直接在桌面电脑上运行Android项目时,不会出现这种情况。这个问题可能是由于远程连接引起的吗?如果是,我该如何更改设置呢?

我需要在远程连接上使用Android Studio进行开发,请问是否有实现的方法?

这是AVD日志。

    C:\Users\xxx\AppData\Local\Android\sdk\tools\emulator.exe -avd Nexus_5_API_21 -netspeed full -netdelay none

emulator: device fd:1228

HAX is working and emulator runs in fast virt mode

creating window 61 83 462 820

日志记录器

    04-29 12:06:39.077    1966-1966/com.example.xxx.four4 E/libprocessgroup﹕ failed to make and chown /acct/uid_10053: Read-only file system
04-29 12:06:39.077    1966-1966/com.example.xxx.four4 W/Zygote﹕ createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?
04-29 12:06:39.078    1966-1966/com.example.xxx.four4 I/art﹕ Not late-enabling -Xcheck:jni (already on)
04-29 12:06:39.183    1966-1986/com.example.xxx.four4 D/OpenGLRenderer﹕ Render dirty regions requested: true
04-29 12:06:39.186    1966-1966/com.example.xxx.four4 D/﹕ HostConnection::get() New Host Connection established 0xa607f4c0, tid 1966
04-29 12:06:39.319    1966-1966/com.example.xxx.four4 D/Atlas﹕ Validating map...
04-29 12:06:40.050    1966-1966/com.example.xxx.four4 I/Choreographer﹕ Skipped 42 frames!  The application may be doing too much work on its main thread.
04-29 12:06:40.184    1966-1986/com.example.xxx.four4 D/﹕ HostConnection::get() New Host Connection established 0xa607fa60, tid 1986
04-29 12:06:40.231    1966-1986/com.example.xxx.four4 I/OpenGLRenderer﹕ Initialized EGL, version 1.4
04-29 12:06:40.469    1966-1986/com.example.xxx.four4 D/OpenGLRenderer﹕ Enabling debug mode 0
04-29 12:06:40.521    1966-1986/com.example.xxx.four4 W/EGL_emulation﹕ eglSurfaceAttrib not implemented
04-29 12:06:40.521    1966-1986/com.example.xxx.four4 W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa6083580, error=EGL_SUCCESS
04-29 12:07:12.637    1966-1973/com.example.xxx.four4 W/art﹕ Suspending all threads took: 13.570ms

谢谢。


1
当我使用Windows RDP远程连接我的工作站时,我遇到了同样的问题。然而,只有在运行x86或x86_64镜像时才会出现这种情况。ARM镜像可以正常运行。因此,目前我一直在使用较慢的仿真来远程工作。只是好奇你的环境是否也是这样,如果是的话,也许这是一个临时解决方案。但是你找到了正确的解决方法吗? - s.co.tt
@s.co.tt 感谢你提供的解决方法。在最初失败后,我没有尝试修复。我会检查ARM镜像并告诉你结果。 - 55597
2个回答

3

我使用远程桌面也遇到了同样的问题。我通过使用另一个远程访问应用程序TeamViewer (http://teamviewer.com) 解决了这个问题。 使用TeamViewer,您可以运行任何Android模拟器,如x86、x86_64或arm。


-1

Android模拟器没有使用你的所有CPU能力,而是一个单独的线程。我猜测远程桌面和模拟器共用同一个线程,因此在使用远程桌面时无法运行模拟器。解决方案是使用更强大的CPU或不同的远程桌面,如user2839592所说。


这实际上是与通过RDP初始化OpenGL相关的问题。 - BlueRaja - Danny Pflughoeft

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接