2015年12月2日 星期三

[研究] Android Studio 1.5.0.4 (141.2422023) Beta 安裝與試用、疑難排除 (Windows 10 x64)

[研究] Android Studio 1.5.0.4 (141.2422023) Beta安裝與試用、疑難排除 (Windows 10 x64)

2015-12-02

根據這裡,還是 Beta
https://sites.google.com/a/android.com/tools/recent/androidstudio15available

官方網站
http://developer.android.com/index.html

下載
https://sites.google.com/a/android.com/tools/download/studio
http://tools.android.com/recent

Android Studio 1.4.1 (141.2343393)
http://tools.android.com/download/studio/builds/1-4-1
檔案名稱:android-studio-bundle-141.2343393-windows.exe  (1.1 GB)

Android Studio 1.5.0.4 (141.2422023)
http://tools.android.com/download/studio/builds/1-5
檔案名稱:android-studio-bundle-141.2422023-windows.exe  (1.1 GB)


Windows 環境系統需求
http://developer.android.com/sdk/index.html#Requirements
  • Windows 8/7/Vista (32 or 64-bit)
  • 2 GB RAM minimum, 4 GB RAM recommended
  • 400 MB hard disk space
  • At least 1 GB for Android SDK, emulator system images, and caches
  • 1280 x 800 minimum screen resolution
  • Java Development Kit (JDK) 7  (實際測試 JDK 8 也可以)
  • Optional for accelerated emulator: Intel processor with support for Intel VT-x, Intel EM64T (Intel 64), and Execute Disable (XD) Bit functionality
建議 BIOS若支援 Intel VT-X  (IVT,Intel Virtualization Technology),請先 Enable 它,免得後面麻煩。

(下圖) 開始安裝




Intel Hardware Accelerated Execution Manager










(下圖) 建議先測試一下模擬器是否能啟動,請執行 AVDManager.exe  ( Android Virtual Device Manager )






(下圖) 建立新專案測試







(下圖) 模擬器啟動需要些時間,根據電腦速度而定,顯示畫面也變換的有點慢



(下圖) 在 Swipe up to unlock 出現在畫面時候,用滑鼠隨便在手機上拖曳一下,會出現如下圖的 Hello World ! 測試畫面

(下圖) 如果模擬器無法啟動,或有其他問題,可看視窗下方訊息進行故障排除

********************************************************************************

故障排除:

(下圖) 如果碰到類似下面問題
Cannot launch AVD in emulator.
Output :
emulator : ERROR : x86 emulation currently required hardware acceleration !
Please ensure Intel HAXM is properly installed and unable.
CPU acceleration status : HAX kernel module is not installed !




(下圖) 解決

HAX 是 Intel 的 Hardware Accelerated eXecution
HAXM 是 Intel 的 Hardware Accelerated eXecution Manager

要解決有幾個地方要動:
(1) 進入 BIOS,把  Intel VT-x (Intel Virtualization Technology) 設定為 Enabled。
(2) 執行 SDK Manager.exe,到最後一行,勾選 Intel x86 Emulator Accelerator (HAXM Installer) ,安裝它。






(下圖) 到最後一行,勾選 Intel x86 Emulator Accelerator (HAXM Installer) ,按下 Install 9 packages 按鈕進行安裝。(預設某些勾選的,如果不需要可以取消)


(下圖) 安裝若成功,"解除安裝或變更程式"畫面應該會看到 Intel Hardware Accelerated Execution Manager 項目

如果確定 BIOS 已經啟動 Intel VT-x,Intel HAXM 也下載了,卻沒有安裝,可參考這篇

於 Intel 架構加速 Android 模擬器
https://software.intel.com/sites/landingpage/tw/speeding-up-the-android-emulator-on-intel-architecture.php

文章中說可以執行
C:\Program Files\Android\android-sdk\extras\Intel\Hardware_Accelerated_Execution_Manager\IntelHaxm.exe. 進行安裝

不過實際上 android-studio-bundle-141.2422023-windows.exe 會安裝到下面目錄 (根據安裝過程中設定的 sdk 目錄,也會有所不同)
C:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe

(完)

相關

[研究] Android Studio 1.5.0.4 (141.2422023) 安裝與試用、疑難排除 (Windows 10 x64)
http://shaurong.blogspot.com/2015/12/android-studio-1504-1412422023-windows.html

[研究] Android 的 Eclipse 開發環境安裝 (Windows 10 x64)
http://shaurong.blogspot.com/2015/11/android-eclipse-windows-10-x64.html

[研究] Android Studio 1.4.1 ( 141.2343393 ) 安裝與試用 (Windows 7 x64)
http://shaurong.blogspot.com/2015/11/android-studio-141.html

[研究] Microsoft Visual Studio Emulator for Android
http://shaurong.blogspot.com/2015/10/microsoft-visual-studio-emulator-for.html

沒有留言:

張貼留言