在Mac OS X上运行Android Studio模拟器的问题

时间:2016-08-07 20:00:44

标签: android macos android-studio

我在OS X El Capitan的Macbook Pro 8 Go内存上成功安装了Android Studio。我创建了一个简单的Hello World应用程序, 然后我尝试运行该应用程序,我被要求创建一个AVD并选择Nexus 5 x config与x86。下载映像文件后创建了设备,然后运行了应用程序。 Gradle流程运行良好,应用程序启动了模拟器

我在应用程序窗口中收到以下消息:

Error while waiting for device: Timed out after 300seconds waiting for emulator to come online.

模拟器只显示" Android" 这个词。 模拟器已运行长时间(超过30 mn)

您将在下面找到一个非常小的模拟器错误窗口摘录。

  

08-07 16:15:31.053 1203-1203 /? E / perfprofd:无法打开   配置文件   /data/data/com.google.android.gms/files/perfprofd.conf 08-07   16:15:31.581 1198-1198 /? E / cutils:无法阅读   /data/.layout_version:没有这样的文件或目录08-07 16:15:34.368   1187年至1187年/? E / libEGL:   load_driver(/system/lib/egl/libGLES_emulation.so):dlopen失败:   library" /system/lib/egl/libGLES_emulation.so"找不到08-07   16:15:34.967 1187-1187 /? E / SurfaceFlinger:找不到hwcomposer模块   08-07 16:15:35.401 1187-1187 /? E / cutils-trace:打开跟踪时出错   文件:权限被拒绝(13)

                                           --------- beginning of system
  

08-07 16:15:44.198 1197-1197 /? E / cutils-trace:打开跟踪时出错   file:Permission denied(13)08-07 16:15:44.198 1197-1197 /?   E / CameraService:setUpVendorTags:供应商标签操作不完整   定义。忽略定义。 08-07 16:15:46.354 1187-1219 /?   E / SurfaceFlinger:ro.sf.lcd_density必须定义为构建   财产08-07 16:15:46.428 1228-1304 /? E / libEGL:   load_driver(/system/lib/egl/libGLES_emulation.so):dlopen失败:   library" /system/lib/egl/libGLES_emulation.so"找不到08-07   16:15:46.673 1228-1304 /? E / cutils-trace:打开跟踪文件时出错:   许可被拒绝(13)

                                           [ 08-07 16:15:46.684  1187: 1221 D/         ]
                                           HostConnection::get() New Host Connection established 0xb70d02c0, tid 1221
  

08-07 16:15:50.397 1197-1324 /? E / AudioFlinger:没有唤醒锁更新!   08-07 16:15:50.400 1197-1197 /? E / audio_hw_generic:打开输入时出错   流格式1,channel_mask 0010,sample_rate 16000 08-07   16:15:50.514 1197-1197 /? E / AudioFlinger:int   android :: load_audio_interface(const char *,audio_hw_device_t **)   无法加载音频hw模块audio.r_submix(没有这样的文件或   目录)08-07 16:15:50.566 1197-1197 /? E / SoundTriggerHwService:   无法加载声音触发模块sound_trigger.primary(没有这样的文件   或目录)08-07 16:15:50.607 1197-1197 /? E / RadioService:不能   加载无线电模块radio.primary(没有这样的文件或目录)08-07   16:16:34.734 1193-1193 /? E / Netd:exec()res = 0,status = 768 for   / system / bin / iptables -w -t nat -N oem_nat_pre 08-07 16:16:35.220   1193年至1193年/? E / Netd:exec()res = 0,状态= 768表示/ system / bin / iptables   -w -t nat -A PREROUTING -j oem_nat_pre 08-07 16:16:35.459 1200-1200 /? E / memtrack:无法加载memtrack模块(没有这样的文件或目录)   08-07 16:16:35.491 1200-1200 /? E / android.os.Debug:无法加载   memtrack模块:-2 08-07 16:16:37.310 1193-1193 /? E / Netd:exec()   对于/ system / bin / iptables -w -t nat -N,res = 0,status = 768   natctrl_nat_POSTROUTING 08-07 16:16:37.701 1193-1193 /? E / Netd:exec()   res = 0,status = 768 for / system / bin / iptables -w -t nat -A POSTROUTING -j   natctrl_nat_POSTROUTING 08-07 16:16:48.729 1200-1200 /? E / Minikin:   addFont无法创建字体/system/fonts/NanumGothic.ttf 08-07   16:16:48.730 1200-1200 /? E / Minikin:addFont无法创建字体   /system/fonts/DroidSansFallback.ttf 08-07 16:16:48.730 1200-1200 /?   E / Minikin:addFont无法创建字体/system/fonts/MTLmr3m.ttf   08-07 16:17:06.251 1193-1193 /? E / Netd:找不到接口dummy0   08-07 16:17:08.653 1200-1200 /? E / EmojiFactory_jni:无法加载   libemoji.so:dlopen failed:library" libemoji.so"找不到08-07   16:18:44.164 1200-1200 /? E / libEGL:   load_driver(/system/lib/egl/libGLES_emulation.so):dlopen失败:   library" /system/lib/egl/libGLES_emulation.so"找不到08-07   16:18:44.919 1200-1200 /? E / Hyphenator:错误加载连字符   /system/usr/hyphen-data/hyph-en-us.pat.txt                                                java.io.FileNotFoundException:   /system/usr/hyphen-data/hyph-en-us.pat.txt:打开失败:ENOENT(否)   这样的文件或目录)                                                    在libcore.io.IoBridge.open(IoBridge.java:452)                                                    在libcore.io.IoUtils $ FileReader。(IoUtils.java:207)                                                    在libcore.io.IoUtils.readFileAsString(IoUtils.java:114)                                                    在android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)                                                    在android.text.Hyphenator.init(Hyphenator.java:154)                                                    在com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)                                                    在com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)                                                    在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)                                                 引起:android.system.ErrnoException:open failed:ENOENT(没有这样的文件或   目录)                                                    at libcore.io.Posix.open(Native Method)                                                    在libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)                                                    在libcore.io.IoBridge.open(IoBridge.java:438)                                                    在libcore.io.IoUtils $ FileReader。(IoUtils.java:207)                                                    在libcore.io.IoUtils.readFileAsString(IoUtils.java:114)                                                    在android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)                                                    在android.text.Hyphenator.init(Hyphenator.java:154)                                                    在com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)

                                              at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186) 
                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)  08-07
  

16:18:44.969 1200-1200 /? E / Hyphenator:错误加载连字符   /system/usr/hyphen-data/hyph-eu.pat.txt                                                java.io.FileNotFoundException:   /system/usr/hyphen-data/hyph-eu.pat.txt:打开失败:ENOENT(没有这样的   文件或目录)                                                    在libcore.io.IoBridge.open(IoBridge.java:452)                                                    在libcore.io.IoUtils $ FileReader。(IoUtils.java:207)                                                    在libcore.io.IoUtils.readFileAsString(IoUtils.java:114)                                                    在android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)                                                    在android.text.Hyphenator.init(Hyphenator.java:154)                                                    在com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)                                                    在com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)                                                    在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)                                                 引起:android.system.ErrnoException:open failed:ENOENT(没有这样的文件或   目录)                                                    at libcore.io.Posix.open(Native Method)                                                    在libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)                                                    在libcore.io.IoBridge.open(IoBridge.java:438)                                                    在libcore.io.IoUtils $ FileReader。(IoUtils.java:207)                                                    在libcore.io.IoUtils.readFileAsString(IoUtils.java:114)                                                    在android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)                                                    在android.text.Hyphenator.init(Hyphenator.java:154)                                                    在com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)

                                              at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186) 
                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)  08-07
  

16:18:45.058 1200-1200 /? E / Hyphenator:错误加载连字符   /system/usr/hyphen-data/hyph-hu.pat.txt

1 个答案:

答案 0 :(得分:0)

作为评论中建议的cricket_007,通常建议使用Genymotion或类似的东西,因为它们更好。

除此之外,如果您热衷于运行AS附带的仿真器,您可能还希望从Android Package Manager获取Intel HAXM(硬件加速执行管理器)驱动程序。它提供硬件加速,但优点因设备而异。