Android 용 새 Intel 에뮬레이터 실행
최근 구글과 인텔은 에뮬레이터를 실행하는 새로운 방법을 발표했다.이 방법은 이전 버전 (ARM CPU를 에뮬레이트 한)보다 훨씬 잘 작동한다. 여기에 이것에 대한 링크가 있습니다 : this and this .
그러나 지시에 따라 새 구성 요소를 설치하고 새 에뮬레이터 구성을 만든 후에 오류가 발생하고 개선 사항도 볼 수 없습니다. API 10과 API 15를 모두 시도했으며 GPU를 활성화 및 비활성화했습니다. 이러한 구성 중 어느 것도 도움이되지 않았습니다. 또한 두 대의 다른 컴퓨터에서 시도했지만 부스트하지 않았습니다 (같은 오류가 발생했습니다).
내가 읽은 게시물에서 아무도 그것에 대해 아무런 문제가 없었으며 모두 훨씬 더 빠른 에뮬레이터를보고합니다.
표시되는 오류는 다음과 같습니다.
emulator: Failed to open the HAX device!
HAX is not working and emulator runs in emulation mode
emulator: Open HAX device failed
왜 이런 일이 일어나고 고칠 수있는 방법이 있습니까? 이러한 오류가 발생하거나 그 반대의 다른 사람이 있습니까?
그건 그렇고, 문제가 될 수 있다면 Intel CPU가 있습니다.
편집하다:
다음은 BIOS에서 볼 수있는 것이므로 사용 가능해야합니다 ... :
같은 문제가 발생하여 Intel Hardware Accelerated Execution Manager를 설치하여 해결했습니다. SDK Manager로 다운로드하면 Extras에 있습니다. 이 후 폴더로 이동
[Android SDK Root]
\extras\intel\Hardware_Accelerated_Execution_Manager
그런 다음 실행 IntelHaxm.exe
하고 설치하십시오.
여기 에 Microsoft Windows, Mac OS * X 및 Linux Ubuntu 용 Intel Hardware Accelerated IntelHaxm.exe 의 링크가 있습니다.
BIOS에서 가상화를 활성화하지 않은 경우 다음 메시지가 표시됩니다.
Windows 8 사용자를위한 작은 참고 사항 Hyper-V 기능이 활성화되어 있으면 Intel HAX가 작동하지 않습니다. Hyper-V (대부분의 가상화 기술과 마찬가지로)는 VT 확장 스위치를 독점적으로 잠그면 HAX가 제대로 작동하지 않습니다. Hyper-V를 "필요한"경우 해결 방법은 HAX가 필요할 때 Hyper-V 서비스를 수동으로 중지하는 것입니다 (아직 테스트하지는 않음).
다른 모든 것이 실패하면. Intel HAXM zip을 수동으로 다운로드하고 압축을 풀고 설치하십시오. 여기를 확인 하십시오
이것은 인텔 가상화 기술을 지원하는 인텔 CPU에서만 작동합니다. 그리고 당신은 반드시 바이오스에서 가상화를 활성화해야합니다.
당신이 저에게 묻는다면 그것은 안드로이드 에뮬레이터에 대해 상당히 괜찮고 눈에 띄게 개선되었습니다.
모든 프로세서가 가상화를 지원하는 것은 아닙니다!
칩셋 기능을 찾으려면 http://ark.intel.com/으로 이동 하여 프로세서 이름을 검색 줄에 삽입하고 해결을 확인하십시오.
고급 기술 : ...
인텔 ® 가상화 기술 (VT-x) = ???
"아니오"가 표시되면 HAXM을 잊을 수 있습니다!
HAX (Hardware Accelerated Execution)를 얻는 단계는 다음과 같습니다.
1 프로세서 Intel 웹 사이트에서 Intel VT-x를 지원하는지 여부를 확인하십시오. http://ark.intel.com/Products/VirtualizationTechnology 모든 Intel Core i 프로세서 및 일부 선택된 프로세서는 Intel VT-x를 지원합니다
2- BIOS를 확인하여 일반적으로 하드웨어 가상화 또는 인텔 가상화로 불리는 Intel VT-x를 활성화합니다.
3- check if you are using a software conflicting with HAXM, popular software conflicting with haxm include but not limited to:
Hyper-V
Windows phone SDK 8
Avast antivirus 8
4-install Intel management engine interface (MEI), this driver is usually not installed and is not part of retailer Windows DVD, even Windows 8. Check this post about how to install: http://communities.intel.com/community/vproexpert/blog/2011/12/19/mei-driver-now-available-via-microsoft-windows-update This driver is required and is not optional to activate Hardware Acceleration you can also install it from windows update
5-use android SDK manager to download Extras -> Intel x86 Hardware Accelerated Execution Manager.
6-Run installer of HAXM from: [Android SDK Root]\extras\intel\Hardware_Accelerated_Execution_Manager\IntelHaxm.exe
if you passed the previous steps the installer will work just fine ,otherwise it will fail
7-start AVD and see the difference in performance, Animations are faster System UI and launchers crashes in 4.0.3 but are just fine for 4.2.2
see installation guide by intel:
Using SDK Manager to download Intel HAX did not work.
Downloading and installing it from the Intel website did work. http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager/
Top Tip: making the change in my BIOS to enable virtualization and then using "restart" did not enable virtualization. Doing a cold boot (i.e. shutdown and restart) suddenly made it appear.
The first step (on Windows) is to make sure that the Micrsoft Hardware-Assisted Virtualization Tool reports that "this computer is configured with hardware-assisted virtualization". http://www.microsoft.com/en-us/download/details.aspx?id=592
You might need to turn on virtualization in your BIOS, most manufacturers disable it by default. Intel HAX requires CPU virtualization to be enabled.
The same began to happen to me about one week ago, without apparent reason (99% sure that I didn't upgrade anything); after being able to run the emulator for some time it just stopped working without an apparent reason.
I tried to install the Intel thingie, but the installer reported that my machine doesn't support Intel VM, despite the fact that it has an Intel i3 processor and that virtualization is enabled (perhaps XP is too old an OS for that, although MS VM, Oracle's Virtual Box and VMWare have been installed an working in this machine with the same OS).
I just edited the VD to emulate an Arm processor, and everything is working again.
Perhaps not the optimal solution, but it works!
For Windows, there are some answers explained how it works. But I'm a Mac User, I don't know how to install HAX driver for Mac as they did for Windows. Finally I found the below link and it did fix my problem. You should download HAXM of Mac and then install it.
Complete step-by-step instructions for running the accelerated emulator can be found on the official Android developers website:
Caution: As of SDK Tools Revision 17, the virtual machine acceleration feature for the emulator is experimental; be alert for incompatibilities and errors when using this feature.
You have to download the Intel® Hardware Accelerated Execution Manager. Then you will get this message:
Starting emulator for AVD 'test' emulator: device fd:740 HAX is working and emulator runs in fast virt mode
For Mac users who want to check whether your processor supports virtualisation, use the maccpuid
software and look for VMX. If it is checked then you're good to go.
Here there are two issues we have to concentrate on:
HAX device failed to open,
For this problem, you have to run the HAX device setup file from the HAX addon folder. Follow Speed Up Android Emulator to know clearly how.
If you created the AVD through AVD manager then you can change the RAM size in AVD Manager and device edit option.
If you created the AVD through command line, then you should start the AVD from command line will work,
emulator -memory 512 -avd gtv_avd
If everything else fails, it's good to try my option and download a HAXM installer.
It needs to be copied to HAXM installation folder and then started from command line (start CMD as an Administrator). After restarting computer HAXM will be installed. It perfectly worked for me as I was having problems with installing it on my laptop.
After all simply type sc query
intelhaxm in your cmd in order to check whether HAXM is installed properly.
If you are running an Intel processor make sure the HAXM (Intel® Hardware Accelerated Execution Manager) installer is installed via SDK Manager by checking this option in SDK Manager. And then run the HAXM installer ext via the path below.
your_sdk_folder\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe
Also check the RAM size allocated while doing HAX installation so it fits the RAM size of your emulator.
This video shows all the required steps which may help you to solve the problem.
이 비디오 는 HAXM 설치 후 문제가 발생해도 도움이됩니다.
효과가있다!
참고 URL : https://stackoverflow.com/questions/10761696/running-the-new-intel-emulator-for-android
'Programing' 카테고리의 다른 글
제출 단추없이 Enter를 눌러 양식 제출 (0) | 2020.03.13 |
---|---|
파이썬에서 두 변수를 바꾸는 표준화 된 방법이 있습니까? (0) | 2020.03.13 |
버전 관리 SQL Server 데이터베이스 (0) | 2020.03.13 |
UITableViewController가없는 UIRefreshControl (0) | 2020.03.13 |
활동적인 자식의 부모를위한 복잡한 CSS 선택기 (0) | 2020.03.12 |