Android Studio安装时候遇到HAXM问题

时间:2021-12-31 04:24:37

之前抽风,把AS写在卸载掉了,再进行重装时候就爆炸了,一直提示下面这个错误:

<一>failed to install Intel HAXM. For details, pleasse check.........(这里是个log目录)

我们打开log文件后,会看到错误信息:

=== Logging started: 2017/3/28 10:11:47 ===
A newer version of Intel® Hardware Accelerated Execution Manager is already installed. The current installation will exit. If you really want to downgrade, you can uninstall the newer version from the control panel first and then install the older version
=== Logging stopped: 2017/3/28 10:11:47 ===

简单翻译一下就是:我们已经有一个更高级的版本Intel在电脑中,请卸载高级的,并重新安装旧版的。(简单来说,HAXM是负责对Android模拟器进行渲染的)

解决方法:

打开控制面板,找到Intel® Hardware Accelerated Execution Manager,卸载掉

然后重新执行AS的安装包,在安装的第一项选择HAXM(或者SDK Manager中进行安装)

另外:我当初没有管这个错误提示,直接打开了AS,创建了个HelloWorld,然后就是一直各种报错,总体来说就是:

invalid revision 24.0.0-alpha 1 invalid revision 24.0.0-alpha1

还有就是

Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

Error:Execution failed for task ':app:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files (x86)\Android\android-sdk\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 1

我们跳转到resource文件后,是.....color相关的东西,具体我也不懂,总体来说就是:

这也是由于HAXM渲染问题所造成的!

<二>当然也可能遇到HXAM服务没有开启的状况,需要重启,F2进入BIOS界面,打开虚拟服务

Android Studio安装时候遇到HAXM问题