[英]Android virtual devices crash immediately on Mac OS X after SDK update
I just updated my Android SDK packages on my MacBook Pro, and all of my Android virtual devices started crash immediately. 我刚刚在MacBook Pro上更新了我的Android SDK软件包,我的所有Android虚拟设备都立即崩溃了。 The error log is as follows:
错误日志如下:
Process: emulator [583]
Path: /Users/dannychia/android-sdk-macosx/tools/emulator
Identifier: emulator
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: eclipse [500]
Date/Time: 2014-03-19 22:45:21.124 -0700
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000003f7d
Crashed Thread: 0
Thread 0 Crashed:
0 dyld 0x8fe0f318 ImageLoaderMachO::bindLocation(ImageLoader::LinkContext const&, unsigned long, unsigned long, ImageLoader const*, unsigned char, char const*, long, char const*) + 278
1 dyld 0x8fe15ee3 ImageLoaderMachOCompressed::bindAt(ImageLoader::LinkContext const&, unsigned long, unsigned char, char const*, unsigned char, long, int, char const*, ImageLoaderMachOCompressed::LastLookup*) + 131
2 dyld 0x8fe203d1 ImageLoaderMachOCompressed::eachBind(ImageLoader::LinkContext const&, unsigned long (ImageLoaderMachOCompressed::*)(ImageLoader::LinkContext const&, unsigned long, unsigned char, char const*, unsigned char, long, int, char const*, ImageLoaderMachOCompressed::LastLookup*)) + 577
3 dyld 0x8fe22c42 ImageLoaderMachOCompressed::doBind(ImageLoader::LinkContext const&, bool) + 290
4 dyld 0x8fe0cc32 ImageLoader::recursiveBind(ImageLoader::LinkContext const&, bool) + 120
5 dyld 0x8fe0dea3 ImageLoader::link(ImageLoader::LinkContext const&, bool, bool, ImageLoader::RPathChain const&) + 209
6 dyld 0x8fe056af dyld::link(ImageLoader*, bool, ImageLoader::RPathChain const&) + 137
7 dyld 0x8fe0788d dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**) + 3994
8 dyld 0x8fe018b1 dyldbootstrap::start(macho_header const*, int, char const**, long) + 779
9 dyld 0x8fe01057 _dyld_start + 39
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000002 ebx: 0x8fe0f216 ecx: 0xbfffd5dc edx: 0xa0ccd4c0
edi: 0x00003f7d esi: 0x00000002 ebp: 0xbfffd268 esp: 0xbfffd210
ss: 0x0000001f efl: 0x00010286 eip: 0x8fe0f318 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x00003f7d
They were working properly before the update. 他们在更新前正常工作。 I've been told one common cause of this issue is the use of an external monitor, but I don't have any connected to my MacBook Pro.
我被告知这个问题的一个常见原因是使用外接显示器,但我没有连接到我的MacBook Pro。 I deleted my entire SDK folder and installed everything again from scratch, but that didn't help.
我删除了整个SDK文件夹并从头开始重新安装了所有内容,但这没有用。 I also deleted the .android folder to no avail either.
我也删除了.android文件夹也无济于事。
Any advice would be appreciated. 任何意见,将不胜感激。
Just to add my own (horrendous) experience with this, a colleague pointed out that running Docker at the same time (OSX), causes the emulator to crash - stopping this allows the emulator to start... 只是为了添加我自己的(可怕的)经验,一位同事指出同时运行Docker(OSX)会导致模拟器崩溃 - 停止这会让模拟器启动...
Hope this solves the problem for anyone who struggles with the above answers... 希望这能解决任何与上述答案挣扎的人的问题......
Turns out this is a known issue 67036 in SDK 22.6. 事实证明这是SDK 22.6中的已知问题67036 。 Two solutions are provided in the comments of this issue:
本期评论中提供了两种解决方案:
The downgrade steps from another post solved the problem for me. 来自另一个帖子的降级步骤解决了我的问题。 If during the boot Android Studio asks to upgrade the SDK, just press Cancel.
如果在启动过程中Android Studio要求升级SDK,请按“取消”。
Start your AVD manager from your SDK manager and your SDK manager from SDK\\tools\\Android.bat. 从SDK管理器启动AVD管理器,从SDK \\ tools \\ Android.bat启动SDK管理器。 I use the ADT 22.6 and i do not see this issue.
我使用ADT 22.6,我没有看到这个问题。 Does it crash when you try to launch an emulator or just at the boot up of the AVD itself?
当您尝试启动模拟器时或仅在启动AVD时它会崩溃吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.