OS X 上的 HAXM 不断消失 [英] HAXM on OS X keeps on disappearing
问题描述
我最近使用 El Capitan 在 OS X 上移动了我的 android 开发环境.一切都按预期工作.我发现的唯一问题是,每次重新启动 PC 后,HAXM 都会从/dev"中消失,Android Studio 会在使用 HAXM 启动模拟器时报告它.
I have recently moved my android development environment on OS X, using El Capitan. Everything is working as expected. The only problem i find is that after every time I restart my PC the HAXM gets disappeared from '/dev' and Android Studio Reports it while starting an emulator using the HAXM.
当我转到 Android SDK 文件夹中的 extras 并尝试安装时,它说已经安装了相同的东西,如果继续,它将重新安装.我继续安装.之后一切正常,直到下次重新启动系统.
When I go to extras in Android SDK folder and try to install, it says that the same is already installed and if continue, it will be reinstalled. I continue to install. After which every thing works fine, till next reboot of the system.
谁能告诉我,如何解决这个问题.重新安装HAXM不是什么大任务,但是真的很烦.
Can anyone please tell me, how to resolve the issue. It is not a big task to reinstall HAXM, but it is really annoying.
推荐答案
想通了这一点:在 El Capitan 上从 HAXM 1.1.4 升级到 1.1.5 时,安装路径从 /System/Library
到 /Library
.然而,HAXM 安装程序提供的就地升级脚本并不能完美地处理这个问题,这使得事情处于一种时髦的状态.正是因为这个原因,HAXM 页面说:
Figured this one out: when upgrading from HAXM 1.1.4 to 1.1.5 on El Capitan, the installation path moves from /System/Library
to /Library
. However, the in-place upgrade script shipped by the HAXM installer doesn't handle this perfectly, which leaves things in a funky state. It is for this reason that the HAXM page says:
在安装 HAXM 1.1.5 之前,必须使用以下方法卸载以前的版本(1.1.4 及以下):
Before installing HAXM 1.1.5, the previous version (1.1.4 and below) must be uninstalled using:
sudo/System/Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh
sudo /System/Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh
如果您的安装由于在安装 1.1.5 之前没有卸载 1.1.4 而已经损坏,那么以下步骤对我有用:
If your installation is already broken because you didn't uninstall 1.1.4 before installing 1.1.5, the following steps worked for me:
- 使用
sudo
运行 - 删除剩余的 1.1.4 文件(特别是对我来说,关键是删除
/System/Library/LaunchDaemons/com.intel.haxm.plist
尽管可能还有更多文件遗留在/System/Library
其他人) - 以正常方式重新安装 1.1.5
/Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh
从新路径卸载 1.1.5- Uninstall 1.1.5 from its new path by running
/Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh
withsudo
- Remove left-over 1.1.4 files (specifically for me the key was to remove
/System/Library/LaunchDaemons/com.intel.haxm.plist
although there may be more files left over in/System/Library
for other people) - Reinstall 1.1.5 the normal way
这篇关于OS X 上的 HAXM 不断消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!