之前抽風,把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界面,打開虛擬服務