【问题标题】:Android Studio 2.0 QObject: Timers cannot be stopped from another thread on OSXAndroid Studio 2.0 QObject:计时器不能从 OSX 上的另一个线程停止
【发布时间】:2016-04-11 20:35:00
【问题描述】:

在 2013 年末运行 OSX 10.11 的 iMac 尝试运行模拟器时会引发 QObject: Timers cannot be stopped from another thread 错误。我尝试重新安装 Intel HAXM 驱动程序无济于事。非常感谢任何帮助。

 /Users/xxxxxx/Library/Android/sdk/tools/emulator -netdelay none -netspeed full -avd Nexus_9_API_22
emulator: WARNING: VM heap size set below hardware specified minimum of 192MB
emulator: WARNING: Setting VM heap size to 384MB
Creating filesystem with parameters:
   Size: 69206016
   Block size: 4096
   Blocks per group: 32768
   Inodes per group: 4224
   Inode size: 256
   Journal blocks: 1024
   Label: 
   Blocks: 16896
   Block groups: 1
   Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks
Hax is enabled
Hax ram_size 0x60000000
HAX is working and emulator runs in fast virt mode.
console on port 5554, ADB on port 5555
QObject::~QObject: Timers cannot be stopped from another thread

注意:Android 2.1.2 为我解决了这个问题。

【问题讨论】:

  • 受此错误影响的用户请点赞(star)这张票code.google.com/p/android/issues/detail?id=206383
  • 我不使用 OS X,因此除了使用不同的操作系统(如 Linux)之外,我无法建议解决方法。 :-) 话虽如此,您的问题不太可能与 HAXM 有关,而是与模拟器使用的 qemu 环境有关。

标签: android macos android-studio


【解决方案1】:

两个不满意的解决方法:

  • 禁止模拟器 GUI: 模拟器 - 无窗口 .... 应用程序将在模拟器上运行,但您只能在调试器中看到它们,而不是在显示器上看到它们

  • 禁止使用 GPU: 模拟器 -gpu 关闭 .... 应用程序将成功运行,具有完整的 UI,但速度很慢

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-07-18
    • 2021-04-13
    • 2020-03-31
    • 2014-04-16
    • 2018-02-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多