your programing

AMD 프로세서로 AVD를 시작하는 중 오류

lovepro 2020. 9. 30. 11:14
반응형

AMD 프로세서로 AVD를 시작하는 중 오류


AMD 프로세서가 장착 된 Windows 8.1 pro가 있습니다. Android SDK와 Eclipse를 설치했습니다. 작동하지만 문제는 AVD를 만들고 시작할 때 다음 오류가 표시된다는 것입니다.

에뮬레이터 : 오류 : x86 에뮬레이션에는 현재 하드웨어 가속이 필요합니다!
Intel HAXM이 제대로 설치되고 사용 가능한지 확인하십시오.
CPU 가속 상태 : HAX 커널 모듈이 설치되지 않았습니다!

Intel Hardware_Accelerated_Execution_Manager를 이미 설치했고 부팅 메뉴에서 가상 변조를 활성화했지만 여전히 작동하지 않습니다.


HAXM installerSDK 관리자에 설치했는지 확인하십시오 .

Android SDK 관리자

다운로드 한 후 {SDK_FOLDER} \ extras \ intel \ Hardware_Accelerated_Execution_Manager \ intelhaxm.exe에 있는 설치 프로그램 실행 했는지 확인하십시오 .

참고 : Android Studio에서 "intelhaxm.exe"명령이 "intelhaxm-android.exe"로 변경되었습니다.

설치 중에 "VT가 지원되지 않음" 오류가 발생하면 Windows 기능에서 Hyper-V를 비활성화하십시오. 이 명령을 실행할 수 있습니다 dism.exe /Online /Disable-Feature:Microsoft-Hyper-V. BIOS에서 활성화하려면 "가상화 기술"도 필요합니다.


  1. SDK Manager를 열고 아직하지 않은 경우 Intel x86 Emulator Accelerator (HAXM 설치 프로그램)를 다운로드 합니다.

  2. 이제 SDK 디렉터리 (일반적으로 C : \ users \ username \ AppData \ Local \ Android \ sdk)로 이동합니다. 이 디렉토리에서 extras → Intel → Hardware_Accelerated_Execution_Manager 로 이동하여 " intelhaxm-android.exe " 라는 파일을 실행합니다 .

    "인텔 가상화 기술 (vt, vt-x)이 활성화되지 않음"과 같은 오류가 발생하는 경우 BIOS 설정으로 이동하여 하드웨어 가상화를 활성화하십시오.

  3. Android Studio를 다시 시작한 다음 AVD를 다시 시작하십시오.

에뮬레이터 창을 표시하는 데 1 ~ 2 분 정도 걸릴 수 있습니다.


Mac을 실행하는 경우 @pedro에서 언급했듯이 Android SDK 관리자를 통해 HAXM 설치 프로그램을 다운로드했는지 확인합니다.

다음으로 설치하십시오! 파인더에서 다음으로 이동/YOUR_SDK_PATH/extras/intel/Hardware_Accelerated_Execution_Manager/

다음 .dmg에서 .mpgk를 실행하고 설치하십시오.

  • 요세미티 : IntelHAXM_1.1.0_for_10.10.dmg
  • 요세미티 전 : IntelHAXM_1.1.0_below_10.10.dmg
  • El Capitan : IntelHAXM_6.0.1.dmg-IntelHAXM_6.0.1.mpgk 파일을 내부에 설치하십시오-다시 설치할 것인지 묻습니다. 그냥 '네'라고 말하세요.

예:

$cd /YOUR_SDK_PATH/extras/intel/Hardware_Accelerated_Execution_Manager/
$open IntelHAXM_1.1.0_below_10.10.dmg

먼저 BIOS에서 Intel 가상화 기술을 활성화해야합니다.

여기에 이미지 설명 입력

둘째 , SDK ... \ extras \ intel \ Hardware_Accelerated_Execution_Manager로 이동합니다.

여기에 이미지 설명 입력

그런 다음 intelhaxm-android.exe를 설치 합니다.

디렉토리에서이 파일을 찾을 수없는 경우 SDK 관리자에서 패키지를 설치해야합니다.

여기에 이미지 설명 입력


이것은 나를 위해 해결합니다.

( C : \ users \ % USERNAME % \ AppData \ Local \ Android \ sdk, 일반적으로 )로 이동합니다.

그런 다음 Extras-> Intel- > Hardware_Accelerated_Execution_Manager 로 이동하여 "intelhaxm-android.exe"라는 파일을 실행합니다.

" 인텔 가상화 기술 (vt, vt-x)이 활성화되지 않음 "과 같은 오류가 발생하는 경우 BIOS 설정으로 이동하여 하드웨어 가상화를 활성화하십시오.

스튜디오 다시 시작


AMD 프로세서의 경우 :

Genymotion이 필요하지 않고 새 가상 장치를 만들고 시스템 이미지를 선택하는 동안 ABI를 기본 x86 대신 armeabi 로 선택하십시오 .

여기에 이미지 설명 입력


나는 최근에 같은 문제에 직면했습니다.

SDK Manager에 HAXM 설치 프로그램을 설치했습니다.

여기에 이미지 설명 입력

그런 다음 최신 Intel HAXM 드라이버를 설치했습니다.

https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement

그리고 짜잔 !!! 에뮬레이터는 매력처럼 작동합니다. :)


AMD 프로세서의 경우 :

AVD 관리자로 이동하여 ARM 시스템 이미지로 새 가상 장치를 만듭니다.


그래서 나는이 문제가 있으며 Linux를 사용하지 않는 한 HAXM을 사용할 수 없습니다. [편집 : 문제인 AMD 칩 (비 인텔)이있는 경우]

Android 사이트에 명시된 바와 같이

Many modern CPUs provide extensions for running virtual machines (VMs) more efficiently. Taking advantage of these extensions with the Android emulator requires some additional configuration of your development system, but can significantly improve the execution speed. Before attempting to use this type of acceleration, you should first determine if your development system’s CPU supports one of the following virtualization extensions technologies:

Intel Virtualization Technology (VT, VT-x, vmx) extensions

> AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)

As others have mentioned Genymotion may be a solution.


I waste too much time on this, and none of the previous answers work. I find that Avast is the issue!!! If you have Avast installed in your system, you have to:

Go to settings tab --> troubleshooting, then you should UNCHECK the "enable hardware-assisted virtualization"

Restart your PC and install the intelhaxm-android.exe if it is not installed. You can find it in C:\Users\{YOUR USERNAME}\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager


For those who are using Android Studio based on Jetbrains:

  1. Goto Tools > Android > SDK Manager

  2. Under Extras --> select the checkbox Intel x86 Emulator Accelorator

For those who are unable to use Nexus AVD can also try using Generic AVD.

  1. Goto Tools > Android > AVD Manager

Then create a new Genreic AVD with something like QVGA and use for your app. This AVD does not use hardware acceleration.


I was facing this issue running the emulator inside Oracle VirtualBox. For me the solution was to modify the emulator to use an ARM CPU instead of x86.


You need to read (and post) the output of

sc query intelhaxm

as stated on http://developer.android.com/tools/devices/emulator.html#accel-vm

You open a command prompt window by right click on the start menu, choose execute and write 'cmd'.

See also Android Emulator Doesn't Use HAXM .

If you cannot get the emulator to work you might want to try out an easier alternative: Genymotion - http://genymotion.com/


For Android Studio 1.0.2:

First make sure Intel x86 emulator accelerator is installer. Check it in your SDK Manager. If not, then install it from there.

Go to your Android SDK folder, **{SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager**

There you will find silent_install.bat.

Run it. It will create haxm_silent_run.log. After that, close and restart your Android Studio and then run your app.

It will work. In case of a problem, check the haxm_silent_run.log file.


First of all you should have Virtualization Enabled and you can do it from BIOS setting. After that go to Control Panel\Programs and Click on "Turn Windows features on or off" option. You will now have a pop up window, spot "Windows Hypervisor Platform" and enable it by checking the checkbox. 여기에 이미지 설명 입력 Restart your PC and now AVD should work without any issue.


As many other pointed out, Intel HAXM only supports Intel CPUs. Since Windows 1804 you can use Microsoft's Hyper-V instead of HAXM for the emulator. This also helps people who want to use Hyper-V for virtual machines as you need to disable hyper-v to run haxm.

Short version:

  • install Windows Hypervisor Platform feature
  • Update to Android Emulator 27.2.7 or above
  • put WindowsHypervisorPlatform = on into C:\Users\your-username\.android\advancedFeatures.ini or start emulator or command line with -feature WindowsHypervisorPlatform
  • enable IOMMU in your BIOS settings

Long version with more details:

https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/

Requirements docs:

https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/system-requirements-for-hyper-v-on-windows


While creating a Virtual Device select the ARM system Image. Others have suggested to install HAXM, but the truth is haxm wont work on amd platform or even if it does as android studio does not supports amd-vt on windows the end result will still be a very very slow emulator to run and operate. My recommendation would be to either use alternative emulator like Genymotion (works like a charm with Gapps installed) or switch to linux as then you will get the benefit of amd-vt and emulator will run a lot faster.


I don't know if this is going to work but you can try this:

It's becoming pretty clear that the emulator team needs to do a better job of disseminating this information about how to use the emulator on AMD on Windows. This question comes up every week it seems.

First, uninstall HAXM.

Next, go here - https://developer.android.com/studio/run/emulator-acceleration#vm-windows and follow the instructions for Configuring VM acceleration with Windows Hypervisor Platform

Finally, if you get low framerates in your emulator instances, follow the instructions in the same page for Enabling Skia rendering for Android UI.


In my case, HAXM was already installed in SDK Manager. But every time I attempted to intelhaxm-android.exe, it would silently fail.

Finally, I extracted the internal installers out of intelhaxm-android.exe in 7-zip. Copied the three files to another directory and finally got a real installer to run. Ran without a hitch and HAXM issues were gone.

참고URL : https://stackoverflow.com/questions/26355645/error-in-launching-avd-with-amd-processor

반응형