This is pretty old question, but I got the error when trying to run an android emulator/simulator/avd (whatever it’s called) after installing android studio 2022.1 on a clean windows 11 laptop.
First, why the heck does Android Studio require an optimization in order for the emulator to work? I would expect it to work regardless; maybe slower without the optimization. But that’s neither here nor there. It is required and it’s a PITA.
Other answers say you need to enable windows feature Hyper-V (or Windows Hypervisor Platform) and others say you need to disable it!! I don’t think it matters. I tried it with and without and seems to have no effect — either to fix the problem or to cause the problem once I did get it fixed.
But, maybe it does need to be enabled (or disabled) in some situations like older Android Studio or Windows 10 or other computers. So many, configurations.
Anyway, what I had to do was read the message at the end of HAXM installed :). Normally, the last message of an installer is super boring so I never read it. But, this one said I needed to enable virtualization in the BIOS. Doing that was a PITA, but it did fix the problem.
FWIW I installed HAXM 7.8.0 directly, not via Android Studio. But, it might work via AS too.
I’ve been assigned a mission to make an Android app, so I installed Android Studio on my new Windows. I’m actually an iOS developer and I’m used to Xcode but not this one. When I tried to launch the emulator, I got an error saying ” HAXM is not installed “.
So today, I’m gonna show you how to download Android Studio and launch the Android emulator.
Download Android Studio
Go to Android Studio and click Download Android Studio button.
(read through all the terms and conditions and) Check “I Agree” button and start the download !
Launch the exe file to start the installation. Click Next.
Choose Components
Make sure you check the option Android Virtual Device aka emulator and click Next.
Configuration Settings
Choose where you want to install Android Studio and click Next.
Choose Start Menu Folder
Create a shortcut (if you don’t want the shortcut, tick “Do not create shortcuts” option ✅) then proceed with Install.
Installation Completed ! Click Next.
✅ Start Android Studio and launch Android Studio.
Setting Up Android Studio
Import Android Studio Settings
If you have settings file for Android Studio, you can import from here. If not, select Do not import settings and click OK.
Data Sharing
Send usage statistics to Google means you have agreed to share your data with Google. It’s up to you.
*Setup Wizard popping up*
Install Type
You can customize installation settings here. It’s always easy to keep the default setting. Click Next.
Select UI Theme
Select either light or dark mode. I prefer dark mode.
SDK Components Setup
Select the SDK components you want to install here.
Verify Settings
Review the installation settings and click Finish !!
Create a New Project
So it’s time for testing out the emulator. Click Create New Project to start a new project.
Choose Empty Activity (or whatever you like).
I left them all by default except Language since I’m not familiar with Kotlin.
I already installed AVD, so it must be ready to launch the emulator. Click Run !!
q|゚Д゚|p?!?
Intel HAXM is required to run this AVD.
HAXM is not installed.Install Intel HAXM for better emulation performance.
Well… it seems like not all required libraries are automatically installed on the setup.
So click Configure then SDK Manager.
On System Settings > Android SDK, choose SDK Tools and tick Intel x86 Emulator Accelerator (HAXM installer and click OK. It’s done
…not yet.
It just downloaded the exe file, so you must manually run the file to install it. Find out where the installed file sits then double-click it.
C://Users/{YourUserName}/AppData/Local/Android/Sdk/extras/intel/Hardware_Accelerated_Execution_Manager-2/haxm-7.6.5-setup.exe
Launch the setup wizard, agree to the license ( read them all q|゚Д゚|p ) and start downloading by clicking Install.
Click Finish and it’s done.
It worked !!
(´ε`;) whew…
I followed the steps in this link: Solved problem
1st step: Checked BIOS and enabled the virtualization capability.
2nd step: Installed the Intel HAXM installer.
3rd step: Checked android studio and see if the problem is solved, it is not solved.
I checked youtube and google searches and I’ve done most of them. In coreinfo, my NX has an asterisk sign meaning the it is enabled already and I haven’t done anything wrong in my bios setup.
EDIT: PC Specs
Windows 7
Intel Core i3 2120
4GB RAM
Asus H61M-E
Константин Иванов (22 уровень), не умничайте, а лучше подумайте и помогите.
Или не засоряйте эфир
Android Emulator прекрасно работал, но после очередного старта Android Studio написал, что какой-то из компонентов хочет обновиться. Не вникая в детали, кликнул обновить, дождался успешного завершения процесса — и теперь при старте эмулятора получаю это сообщение.
Очевидно, речь идет про проблемы на виртуальной машине, ведь ядро Андроида сделано на базе Линукса. И при запуске из-под винды виртуализация глючит.
Не удивлюсь, если прочитаю, что Windows 7 больше не поддерживается,
и откатиться обратно уже нельзя
1 / 1 / 0 Регистрация: 31.01.2018 Сообщений: 207 |
|
1 |
|
31.01.2018, 00:29. Показов 24823. Ответов 4
Ребятки, подскажите как решить проблему! При запуске AndroidStudio проекта, а именно при нажатии на кнопку Run выдает вот такую ошибку
0 |
Programming Эксперт 94731 / 64177 / 26122 Регистрация: 12.04.2006 Сообщений: 116,782 |
31.01.2018, 00:29 |
4 |
MiThEoN 466 / 323 / 42 Регистрация: 31.10.2009 Сообщений: 546 Записей в блоге: 2 |
|
31.01.2018, 09:03 |
2 |
Вот кажись инструкция для вашего случая — инструкция
0 |
1 / 1 / 0 Регистрация: 31.01.2018 Сообщений: 207 |
|
31.01.2018, 09:56 [ТС] |
3 |
Спасибо большое. Надеюсь разберусь и поможет. А как давно вы в Android разработке? И подскажите материал обучающий для изучения. Добавлено через 37 секунд
0 |
MiThEoN 466 / 323 / 42 Регистрация: 31.10.2009 Сообщений: 546 Записей в блоге: 2 |
|
31.01.2018, 10:05 |
4 |
я в Андроид 1.5 года, мне повезло что я сразу стал писать боевые приложения, т.е. для продакшена))) Есть сайты где разбираются целые циклы тем плюс: любые проблемы всегда можно решить с помощью поисковиков, обычно будет бросать на этот сайт — https://stackoverflow.com/, правда там в основном на английском потом когда уже немного освоишься, необходимо будет пользоваться https://developer.android.com/training/index.html Ну и естественно ни когда не останавливаться изучать новые технологии, фишки, библиотеки, графику, анимации и т.д.
0 |
1 / 1 / 0 Регистрация: 31.01.2018 Сообщений: 207 |
|
31.01.2018, 12:23 [ТС] |
5 |
VASSUV, Спасибо тебе огромное за инфу
0 |