萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 作業系統 >  >> Windows 10 資訊

Win10 安裝 Android 模擬器 Visual Studio Emulator for Android 完整教學

微軟發布獨立版 Android 模擬器 Visual Studio Emulator for Android,效能優於 Google 官方模擬器,需 Hyper-V 支援。

安裝前置需求

  • Win10 專業版/企業版/教育版(家庭版無 Hyper-V)。
  • CPU 支援 SLAT (Second Level Address Translation)。
  • BIOS 開啟虛擬化技術 (VT-x/AMD-V)。

啟用 Hyper-V

  1. 控制台 → 程式和功能 → 「開啟或關閉 Windows 功能」。
  2. 勾選 Hyper-V 所有子項 → 確定 → 重新開機。

安裝模擬器

  1. 下載 vs_emulatorsetup.exe(約 40 MB,官網/軟體下載站)。
  2. 執行安裝,預設下載 API 19 (Android 4.4) x86 映像檔。
  3. 安裝完成**必須重新開機**(加入 Hyper-V 管理員群組)。

整合 Android Studio

  1. Android Studio → Run → Edit Configurations → Defaults → Android Application → General → Target Device:勾選「Show chooser dialog」與「Use same device for future launches」。
  2. 設定 External Tools 啟動模擬器與 adb connect 快捷按鈕(詳見原文完整參數)。
  3. Run 前自動啟動模擬器並連接 adb,單鍵完成部署偵錯。

此模擬器不依賴 Visual Studio,可獨立搭配 Android Studio 使用。

copyright © 萬盛學電腦網 all rights reserved