简体   繁体   English

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

[英]Problems with running Android studio emulator on Mac OS X

I successfully installed Android Studio on my Macbook Pro 8 Go memory under OS X El Capitan.I created a simple Hello World app and then I tried to run the app, I was asked to create an AVD and chose Nexus 5 x config with x86. 我在OS X El Capitan的Macbook Pro 8 Go内存上成功安装了Android Studio。我创建了一个简单的Hello World应用程序然后我尝试运行该应用程序,我被要求创建一个AVD并选择带x86的Nexus 5 x config。 The device was created after downloading the image file and I ran the App. 下载映像文件后创建了设备,然后运行了应用程序。 The Gradle process ran well and the app launched the emulator Gradle流程运行良好,应用程序启动了模拟器

I got the following message in the app window : 我在应用程序窗口中收到以下消息:

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

The emulator showed only the word "Android" . 模拟器只显示“Android”一词。 The emulator has been running for a long time (more than 30 mn) 模拟器已运行很长时间 (超过30 mn)

Below you'll find a very small extract of the emulator error window. 下面你会发现一个非常小的模拟器错误窗口的摘录。

08-07 16:15:31.053 1203-1203/? 08-07 16:15:31.053 1203-1203 /? E/perfprofd: unable to open configuration file /data/data/com.google.android.gms/files/perfprofd.conf 08-07 16:15:31.581 1198-1198/? E / perfprofd:无法打开配置文件/data/data/com.google.android.gms/files/perfprofd.conf 08-07 16:15:31.581 1198-1198 /? E/cutils: Failed to read /data/.layout_version: No such file or directory 08-07 16:15:34.368 1187-1187/? E / cutils:无法读取/data/.layout_version:没有这样的文件或目录08-07 16:15:34.368 1187-1187 /? E/libEGL: load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found 08-07 16:15:34.967 1187-1187/? E / libEGL:load_driver(/system/lib/egl/libGLES_emulation.so):dlopen失败:未找到库“/system/lib/egl/libGLES_emulation.so”08-07 16:15:34.967 1187-1187 /? E/SurfaceFlinger: hwcomposer module not found 08-07 16:15:35.401 1187-1187/? E / SurfaceFlinger:未找到hwcomposer模块08-07 16:15:35.401 1187-1187 /? E/cutils-trace: Error opening trace file: Permission denied (13) E / cutils-trace:打开跟踪文件时出错:权限被拒绝(13)

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

08-07 16:15:44.198 1197-1197/? 08-07 16:15:44.198 1197-1197 /? E/cutils-trace: Error opening trace file: Permission denied (13) 08-07 16:15:44.198 1197-1197/? E / cutils-trace:打开跟踪文件时出错:权限被拒绝(13)08-07 16:15:44.198 1197-1197 /? E/CameraService: setUpVendorTags: Vendor tag operations not fully defined. E / CameraService:setUpVendorTags:供应商标签操作未完全定义。 Ignoring definitions. 忽略定义。 08-07 16:15:46.354 1187-1219/? 08-07 16:15:46.354 1187-1219 /? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property 08-07 16:15:46.428 1228-1304/? 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 failed: library "/system/lib/egl/libGLES_emulation.so" not found 08-07 16:15:46.673 1228-1304/? E / libEGL:load_driver(/system/lib/egl/libGLES_emulation.so):dlopen失败:未找到库“/system/lib/egl/libGLES_emulation.so”08-07 16:15:46.673 1228-1304 /? E/cutils-trace: Error opening trace file: Permission denied (13) 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/? 08-07 16:15:50.397 1197-1324 /? E/AudioFlinger: no wake lock to update! E / AudioFlinger:没有唤醒锁更新! 08-07 16:15:50.400 1197-1197/? 08-07 16:15:50.400 1197-1197 /? E/audio_hw_generic: Error opening input stream format 1, channel_mask 0010, sample_rate 16000 08-07 16:15:50.514 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**) couldn't load audio hw module audio.r_submix (No such file or directory) 08-07 16:15:50.566 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: couldn't load sound trigger module sound_trigger.primary (No such file or directory) 08-07 16:15:50.607 1197-1197/? E / SoundTriggerHwService:无法加载声音触发模块sound_trigger.primary(没有这样的文件或目录)08-07 16:15:50.607 1197-1197 /? E/RadioService: couldn't load radio module radio.primary (No such file or directory) 08-07 16:16:34.734 1193-1193/? 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 -N oem_nat_pre 08-07 16:16:35.220 1193-1193 /? E/Netd: exec() res=0, status=768 for /system/bin/iptables -w -t nat -A PREROUTING -j oem_nat_pre 08-07 16:16:35.459 1200-1200/? 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: Couldn't load memtrack module (No such file or directory) 08-07 16:16:35.491 1200-1200/? E / memtrack:无法加载memtrack模块(没有这样的文件或目录)08-07 16:16:35.491 1200-1200 /? E/android.os.Debug: failed to load memtrack module: -2 08-07 16:16:37.310 1193-1193/? E / android.os.Debug:无法加载memtrack模块:-2 08-07 16:16:37.310 1193-1193 /? E/Netd: exec() res=0, status=768 for /system/bin/iptables -w -t nat -N natctrl_nat_POSTROUTING 08-07 16:16:37.701 1193-1193/? E / Netd:exec()res = 0,状态= 768表示/ system / bin / iptables -w -t nat -N 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 / Netd:exec()res = 0,状态= 768表示/ system / bin / iptables -w -t nat -A POSTROUTING -j natctrl_nat_POSTROUTING 08-07 16:16:48.729 1200-1200 /? E/Minikin: addFont failed to create font /system/fonts/NanumGothic.ttf 08-07 16:16:48.730 1200-1200/? E / Minikin:addFont无法创建字体/system/fonts/NanumGothic.ttf 08-07 16:16:48.730 1200-1200 /? E/Minikin: addFont failed to create font /system/fonts/DroidSansFallback.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 failed to create font /system/fonts/MTLmr3m.ttf 08-07 16:17:06.251 1193-1193/? E / Minikin:addFont无法创建字体/system/fonts/MTLmr3m.ttf 08-07 16:17:06.251 1193-1193 /? E/Netd: cannot find interface dummy0 08-07 16:17:08.653 1200-1200/? E / Netd:找不到接口dummy0 08-07 16:17:08.653 1200-1200 /? E/EmojiFactory_jni: Failed to load libemoji.so: dlopen failed: library "libemoji.so" not found 08-07 16:18:44.164 1200-1200/? E / EmojiFactory_jni:无法加载libemoji.so:dlopen失败:未找到库“libemoji.so”08-07 16:18:44.164 1200-1200 /? E/libEGL: load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found 08-07 16:18:44.919 1200-1200/? E / libEGL:load_driver(/system/lib/egl/libGLES_emulation.so):dlopen失败:库“/system/lib/egl/libGLES_emulation.so”未找到08-07 16:18:44.919 1200-1200 /? E/Hyphenator: error loading hyphenation /system/usr/hyphen-data/hyph-en-us.pat.txt java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-en-us.pat.txt: open failed: ENOENT (No such file or directory) at libcore.io.IoBridge.open(IoBridge.java:452) at libcore.io.IoUtils$FileReader.(IoUtils.java:207) at libcore.io.IoUtils.readFileAsString(IoUtils.java:114) at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96) at android.text.Hyphenator.init(Hyphenator.java:154) at 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) Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186) at libcore.io.IoBridge.open(IoBridge.java:438) at libcore.io.IoUtils$FileReader.(IoUtils.java:207) at libcore.io.IoUtils.readFi E / Hyphenator:错误加载连字符/system/usr/hyphen-data/hyph-en-us.pat.txt java.io.FileNotFoundException:/system/usr/hyphen-data/hyph-en-us.pat.txt:打开失败:在libcore.io.IoBridge.open(IoBridge.java:452)的libcore.io.IoUtils $ FileReader。(IoUtils.java:207)上的libcore.io.IoUtils.readFileAsString中的ENOENT(没有这样的文件或目录) (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)at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)引起:android.system .ErrnoException:在libcore.io.IoBridge.open上的libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)的libcore.io.Posix.open(本机方法)中打开失败:ENOENT(没有这样的文件或目录)( IoBridge.java:438)在libcore.io.IoUtils.readFi上的libcore.io.IoUtils $ FileReader。(IoUtils.java:207) leAsString(IoUtils.java:114) at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96) at android.text.Hyphenator.init(Hyphenator.java:154) at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207) leAsString(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/? 16:18:44.969 1200-1200 /? E/Hyphenator: error loading hyphenation /system/usr/hyphen-data/hyph-eu.pat.txt java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-eu.pat.txt: open failed: ENOENT (No such file or directory) at libcore.io.IoBridge.open(IoBridge.java:452) at libcore.io.IoUtils$FileReader.(IoUtils.java:207) at libcore.io.IoUtils.readFileAsString(IoUtils.java:114) at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96) at android.text.Hyphenator.init(Hyphenator.java:154) at 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) Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186) at libcore.io.IoBridge.open(IoBridge.java:438) at libcore.io.IoUtils$FileReader.(IoUtils.java:207) at libcore.io.IoUtils.readFileAsSt E / Hyphenator:错误加载连字符/system/usr/hyphen-data/hyph-eu.pat.txt java.io.FileNotFoundException:/system/usr/hyphen-data/hyph-eu.pat.txt:open failed: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失败:在libcore.io.IoBridge.open上的libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)上的libcore.io.Posix.open(本机方法)中的ENOENT(没有这样的文件或目录)(IoBridge.java: 438)libcore.io.IoUtils. $ FileReader。(IoUtils.java:207)at libcore.io.IoUtils.readFileAsSt ring(IoUtils.java:114) at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96) at android.text.Hyphenator.init(Hyphenator.java:154) at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207) 响铃(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/? 16:18:45.058 1200-1200 /? E/Hyphenator: error loading hyphenation /system/usr/hyphen-data/hyph-hu.pat.txt E / Hyphenator:错误加载连字符/system/usr/hyphen-data/hyph-hu.pat.txt

As cricket_007 suggested in the comment, it is generally suggested to use Genymotion or something similar since they're so much better. 正如cricket_007建议的cricket_007 ,一般建议使用Genymotion或类似的东西,因为它们好得多。

Apart from that, if you're keen on running the emulator that comes with AS, you might also want to get Intel HAXM (Hardware Accelerated Execution Manager) driver from Android Package Manager. 除此之外,如果您热衷于运行AS附带的仿真器,您可能还希望从Android Package Manager获取Intel HAXM(硬件加速执行管理器)驱动程序。 It provides hardware acceleration, but the benefits vary device to device. 它提供硬件加速,但优点因设备而异。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM