删除 LaunchAgents/LaunchDaemons 中的文件后,HAXM 不会 运行

HAXM won't run after deleting the file in the LaunchAgents/LaunchDaemons

我从

中删除了 HAXM 文件后
/Library/LaunchAgents

/Library/LaunchDaemons

/Users/t/Library/LaunchAgents

Login Items

我不太确定它在哪里,但它在上面的其中一个中。现在,即使我卸载它并通过 "Android SDK Manager" 重新安装它也可以开始工作。我收到此错误:

2017-05-19 09:31:57.615 HAXM installation[1057:199982] AuthorizationExecuteWithPrivileges failed with return: -60031
2017-05-19 09:31:57.615 HAXM installation[1057:199982] HAXM installation failed!

在 运行 之后:

/Users/t/Library/Developer/Xamarin/android-sdk-macosx/extras/intel/Hardware_Accelerated_Execution_Manager/HAXM\ installation

我解决了它,但是在“/Users/t/Library/Developer/Xamarin/android-sdk-macosx/extras/intel/Hardware_Accelerated_Execution_Manager”中安装了 "IntelHAXM_6.1.1.dmg"。

成功安装后,我得到了“/Library/LaunchDaemons/com.intel.haxm.plist”文件,我将其删除。

这是文件的内容,以防其他人像我一样删除它并且只需要这个:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>KeepAlive</key>
        <false/>
        <key>Label</key>
        <string>com.intel.haxm</string>
        <key>ProgramArguments</key>
        <array>
                <string>/Library/Extensions/intelhaxm.kext/Contents/Resources/haxm_start.sh</string>
        </array>
        <key>RunAtLoad</key>
    <true/>
    <key>UserName</key>
    <string>root</string>
</dict>
</plist>