본문 바로가기

Android

Android studio emulation issue - AMD

AMD 자체의 문제라기 보다는 

Emulator(virtual machine)를 구동했을때 가상 머신의 option을 enable해야 하는데

한 운영체제(Window10)에서

Android Studio Emulation(AVD)와 VM ware를 동시에 구동시킬 수 없는 것이다.

 

그래서 Powershell(관리자모드)에서 다음과 같이 수행하고 PC를 reboot해야 한다.

 

VM ware를 사용할때는

bcdedit /set hypervisorlaunchtype off

 

Android studio의 emulation을 사용하기 위해서는

bcdedit /set hypervisorlaunchtype auto 

 

 

 

https://docs.microsoft.com/ko-kr/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?pivots=windows

 

에뮬레이터 성능에 대한 하드웨어 가속(Hyper-V & HAXM) - Xamarin

이 아티클에서는 컴퓨터의 하드웨어 가속 기능을 사용하여 Android Emulator 성능을 최대화하는 방법을 설명합니다.

docs.microsoft.com

새로나온 AMD series에서는 하드웨어 가속과 관련된 issue가 있어

bios에서 이를 enable한 이후에 window에서도 이를 다시 활성화하도로고 재설정해야 한다.

 

 

모든 설정을 했는데도

정상적으로 동작이 안될 경우

 

1. AMD BIOS SVM disable

2. HYPER disable (window10 제어판 -> 프로그램추가삭제->Window 기능 켜기/끄기 ->Hyper-V disable

   windows 하이퍼바이져 플랫폼 disable

3. AMD BIOS SVM enable

4. 수동shell  방법 아래 page를 이용하여 enable!!!!

( 이마저도 안될 경우 수동으로 shell command를 이용해 hyper-v를 enable해야 한다)

 

https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v

 

Enable Hyper-V on Windows 10

Install Hyper-V on Windows 10

docs.microsoft.com

https://docs.microsoft.com/ko-kr/xamarin/android/get-started/installation/android-emulator/troubleshooting?pivots=windows

 

Android Emulator 문제 해결 - Xamarin

이 아티클에서는 Android Emulator를 사용할 때 발생할 수 있는 문제를 진단하고 해결하는 방법을 설명합니다.

docs.microsoft.com

https://www.reddit.com/r/Amd/comments/cgpaq4/ryzen_android_emulator_whpx_fix_for_windows/

 

Ryzen Android Emulator WHPX fix for Windows without joining Insider program

> First, download the CAB you need. You’re running an emulator on a 64 bit edition of Windows 10, so that means you need the 64bit cab update. I...

www.reddit.com

 

'Android' 카테고리의 다른 글

Android code download  (0) 2019.10.09