recently installed android studio on my pc, created virtual device but when I click » run ‘app’ » the only thing that happens is error «Error while waiting for device: Could not start AVD», this error is in «Run» tool window, besides that there’s absolutely no information what and why that happens.
Few things worth mentioning:
I have enabled virtualization in bios
I tried deleting virtual device and create new one, no change
I have installed android sdk
Anyone knows how to resolve that problem?
asked Aug 27, 2020 at 19:03
Check AVD Manager if there is no permission denied for /dev/kvm. If it is the issue, open the terminal in Android Studio and run sudo chmod 777 /dev/kvm and it will solve your problem.
Better solution is change the ownership of /dev/kvm from root to the owner of current app by running the command sudo chown -R "your account name" /dev/kvm.
answered Nov 24, 2020 at 12:29
1
In my case, I just had to install the proper drivers for my graphics card. I was using the Ubuntu’s default, nouveau.
answered Jan 2, 2022 at 16:07
for people who are having this problem now in 2021, try to disable the vanguard anti cheat of valorant..he has been having some compatibility problems with android Studio.
answered May 17, 2021 at 16:00
1
As of Android Studio Arctic Fox patch 4, I resolved the issue by adding a new virtual device (for the simulator) which was for ARM architecture.
Here are details with screenshots about the steps on ConfessionsOfAnAgileCoach.
answered Dec 11, 2021 at 18:27
![]()
Lance KindLance Kind
90911 silver badges32 bronze badges
Try this one. it might help.
AVD Manager
- your current running device’s option
- Show On Disk // it will open some folders and files.
- Delete all .lock folders.
- Then run.
This worked for me.
answered Jul 30, 2022 at 3:49
|
13 / 13 / 0 Регистрация: 20.03.2020 Сообщений: 425 |
|
|
1 |
|
|
29.12.2020, 20:34. Показов 11000. Ответов 12
Не запускается виртуальный девайс в андроид студио.
__________________
0 |
|
13 / 13 / 0 Регистрация: 20.03.2020 Сообщений: 425 |
|
|
29.12.2020, 20:36 [ТС] |
2 |
|
Вот такая ошибка. Изображения
0 |
|
343 / 235 / 32 Регистрация: 16.01.2010 Сообщений: 734 |
|
|
29.12.2020, 22:19 |
3 |
|
Напишите конфигурацию ПК
1 |
|
13 / 13 / 0 Регистрация: 20.03.2020 Сообщений: 425 |
|
|
30.12.2020, 05:55 [ТС] |
4 |
|
Я не знаю, что это такое((( Обьясни пожалуйста
0 |
|
Йуный падаван
13845 / 8089 / 2468 Регистрация: 21.10.2017 Сообщений: 19,548 |
|
|
01.01.2021, 18:22 |
5 |
|
что это такое
Хотя в данном случае достаточно знать процессор. Вангую, что у тебя AMD.
1 |
|
13 / 13 / 0 Регистрация: 20.03.2020 Сообщений: 425 |
|
|
01.01.2021, 18:58 [ТС] |
6 |
|
а я не знаю, какой у меня процессор.. Добавлено через 5 секунд
0 |
|
Йуный падаван
13845 / 8089 / 2468 Регистрация: 21.10.2017 Сообщений: 19,548 |
|
|
01.01.2021, 19:04 |
7 |
|
я не знаю, какой у меня процессор Правой кнопочкой мыши на Мой компьютер (винда ведь?) — Свойства
0 |
|
13 / 13 / 0 Регистрация: 20.03.2020 Сообщений: 425 |
|
|
02.01.2021, 11:45 [ТС] |
8 |
|
нету свойств…
0 |
|
13 / 13 / 0 Регистрация: 20.03.2020 Сообщений: 425 |
|
|
02.01.2021, 11:48 [ТС] |
9 |
|
А нет, есть. Вот, нарыл что то. Миниатюры
0 |
|
13 / 13 / 0 Регистрация: 20.03.2020 Сообщений: 425 |
|
|
02.01.2021, 12:36 [ТС] |
11 |
|
нам сказали не ставить генимоушен
0 |
|
Йуный падаван
13845 / 8089 / 2468 Регистрация: 21.10.2017 Сообщений: 19,548 |
|
|
02.01.2021, 13:42 |
12 |
|
Решениеmathus, включай виртуализацию в биосе, ссылка выше
1 |
|
13 / 13 / 0 Регистрация: 20.03.2020 Сообщений: 425 |
|
|
09.12.2022, 18:39 [ТС] |
13 |
|
пасиб
0 |
When starting the simulator, you need to download Andriod 10.0 (Google), I use Over the Wall to download and then select «COULD NOT START AVD» after downloading the downloaded mobile phone type, or when used in the second boot When you drop down to the AVD Manager, you will pop up TIPS: COULD NOT Start AVD when running the downloaded virtual phone, as shown below: 
Solution
Workaround — Open the terminal execution command:
sudo chown ly -R /dev/kvm

The role of this sentence is: , ly is my username, in exchange for your personal username.
Run the Activity under Android Studio again to display it.
Эмулятор в Android Studio не запускается
Я думаю, что это проблема со ссылкой на SDK в структуре проекта, но когда я нажимаю «Выполнить» и выбираю «Запуск эмулятора», ничего не появляется.
У меня такая же проблема. Я только что создал AVD с 768 МБ ОЗУ, и он отлично работал!
У меня была аналогичная проблема . Android-эмулятор не открывается. Вам нужно выяснить причину этого . Вы можете запустить свой эмулятор из командной строки. Для этого вы можете скопировать и вставить свою командную строку из консоли Android Studio «Выполнить» или «AVD». Например:
» android-sdk tools emulator.exe -avd Default_Nexus_5 -netspeed full -netdelay none»
Когда вы запускаете его из терминала командной строки, он выдает сообщение с ошибкой. В моем случае это было полезно для обнаружения проблемы:
.. android-sdk tools> emulator: ОШИБКА: для эмуляции x86 в настоящее время требуется аппаратное ускорение! Убедитесь, что Intel HAXM правильно установлен и может использоваться. Состояние ускорения процессора: модуль ядра HAX не установлен!
Мне нужно было активировать ускорение графического процессора с помощью инструмента, чтобы включить его на моей машине. Я решил установить из SDK Manager инструмент HAXM .
У меня была другая проблема . Например, я назначил неправильный URL-адрес для пути к скину моего виртуального устройства . Чтобы решить эту проблему, я настроил свое виртуальное устройство с допустимым скином из моей платформы sdk: ‘ android- sdk platform android- skins ‘
Сейчас открывается нормально.
Обновление 08.08.2019:
Для более новой версии Android SDK путь к эмулятору должен быть:
» android-sdk emulator emulator.exe»
В моем случае андроид зависает при запуске. Я решил стереть пользовательские данные и принудительно выполнить холодную загрузку с помощью Android Virtual Device Manager (Инструменты-> AVD Manager)

Похоже, что «Ожидание подключения целевого устройства . » — это общее сообщение, которое появляется всегда, когда эмулятор не может запуститься должным образом. И в чем причина этого? Как видите, причин могло быть много.
Я думаю, что лучший способ найти конкретную ошибку в эмуляторе — запустить его в терминале. Так:
1 — Откройте терминал и перейдите в эту папку:
2 — Запустите эмулятор с помощью этой команды:
Вы можете увидеть имя ваших (ранее созданных с помощью AVD Manager) эмуляторов с помощью этой команды:
Если все в порядке, программа не запускается, а пишет в терминале конкретную ошибку.
В моем случае приложение сообщает, что возникла проблема с загрузкой графического драйвера (« ошибка libGL: невозможно загрузить драйвер: r600_dri.so »). Как объясняется здесь , похоже, что Google упаковал с Android Studio старую версию одной библиотеки, и эмулятор не работает, когда пытается использовать мою графическую карту.
Решение? Очень просто: использовать системные библиотеки вместо упакованных в Android Studio. Как? Добавление «-use-system-libs» в конец команды. Так:
Окончательное решение — установить для переменной среды ANDROID_EMULATOR_USE_SYSTEM_LIBS значение 1 для вашего пользователя / системы. С этим изменением, когда я запускаю эмулятор в Android Studio, он также загружает системные библиотеки.
PS 1 — Самый простой способ установить переменную среды, который я нашел, — это изменить скрипт, запускающий Android Studio ( studio.sh , в моем случае он находится внутри / opt / android-stuido / bin ), и добавить в начале это:
PS 2 — Я работаю с Debian Jessie и Android Studio 2.2.3. Моя графическая карта — ATI Radeon HD 6850 от Sapphire.
ОБНОВЛЕНИЕ Декабрь 2017: у меня была такая же проблема с Debian Stretch и Android Studio 3.0.1 (та же графическая карта). У меня работает то же решение.
AVD doesn’t work after installing Android Studio [closed]
Questions on Android Enthusiasts should be asked from a end-user point of view and within the scope defined in the help center.
Closed 6 months ago .
I installed Android Studio, but when I try to run, the emulator is not working. When I googled, I find some instructions in which the
- Open SDK Manager and Download Intel x86 Emulator Accelerator (HAXM installer) if you haven’t.
-
Now go to your SDK directory (C:usersusernameAppDataLocalAndroidsdk, generally). In this directory Go to extra > intel > Hardware_Accelerated_Execution_Manager and run the file named «intelhaxm-android.exe».
In case you get an error like «Intel virtualization technology (vt,vt-x) is not enabled». Go to your BIOS settings and enable Hardware Virtualization.
- Restart Android Studio and then try to start the AVD again.
but I don’t know where is BIOS setting of my computer. I have HP desktop CPU and try to find the BIOS from start, F10 as well as from change PC setting in Windows, but all in vain.
![]()
3 Answers 3
I faced a similar problem recently on my windows 10 laptop and found out that the Intel virtualization technology (vt-x) was disabled from BIOS.
In case you are using a new laptop which comes per-installed with Windows 8/8.1/10 then chances are that you cannot enter the BIOS manually while booting. Reason being they have changed BIOS to UEFI which is no longer accessible through boot but instead you need to do the following steps:
Go to Windows > Settings > Update and Security > Recovery. Then under Advanced startup, click Restart now. The system will restart and show the Windows 10 boot menu. Select Troubleshoot > Advanced options > UEFI Firmware Settings. Click Restart to restart the system and enter UEFI (BIOS). from here you can access the UEFI menu (which is similar to BIOS)
Search for the VT-x setting (It may be named as Intel VT or Vanderpool or Virtualization Extensions or something similar depending on your OEM and BIOS.)
After experiencing repeated sudden system crashes, I decided to update my Linux environment. Since then, my Android Studio stopped working properly. Several problems were found with the AVD, JVM and Gradle project sync and so forth. And I needed to spend my weekend fixing one problem after another.
I had kvm installed, added myself to its users group and rebooted the system.
|
$ kvm —version QEMU emulator version 2.11.1(Debian 1:2.11+dfsg—1ubuntu7.2) Copyright (c) 2003—2017 Fabrice Bellard and the QEMU Project developers $ kvm—ok INFO: /dev/kvm exists KVM acceleration can be used $ ls —l /dev/kvm crw—rw—— 1 root kvm 10, 232 May 28 18:20 /dev/kvm $ grep kvm /etc/group kvm:x:128:femoghalvfems |
Still it didn’t make any difference. The IDE kept showing the message “Error while waiting for device: Could not start AVD” and would never start the emulator.
This gave no clue what was going on. There had to be permission problems, I suspected. I changed the permission of the directory.
Of course, I knew it is usually not a good idea. Granting the full control permission to everyone would pose a threat to the entire system and even possibly cause another problem. But it worked, anyway. As I changed the directory permission, I became able to build apps using Android studio.
Unfortunately, the case was not yet closed. In the following hours, I got another system crash and had to reinstall the whole system from a bootable flash drive. My workstation contained NVIDIA and CUDA property drivers that conflicted with some other modlues from time to time. They froze all the processes and threads. I could not even raise skinny elephants.
So I reinstalled Ubuntu 18.04 LTS on my workstation and tried building apps with the latest Android Studio.
This time, I could open the AVD by simply adding myself to kvm user group. And it worked well! I didn’t do anything other than newly install a series of the required virtualization tools and add a new user. And it worked!
|
$ sudo adduser femoghalvfems kvm Adding user `femoghalvfems‘ to group `kvm’ ... Adding user femoghalvfems to group kvm Done. |
Now I really don’t know what prevented the IDE from running the virtual machine.
It seems that «Waiting for target device to come online …» is a generic message that appears, always, when the emulator can not start properly. And what’s the cause of that? As you can see, there could be many causes.
I think the best way to find the concrete error with the emulator is to start it within a terminal. So:
1 — Open a terminal and go to this folder:~/Android/Sdk/tools
2 — Start the emulator with this command:
./emulator -avd EMULATOR_NAME -netspeed full -netdelay none
You can see the name of your (previously created with AVD Manager) emulators with this command:
./emulator -list-avds
If everything is ok, the program doesn’t start, and it writes in the terminal the concrete error.
In my case, the application says that there is a problem loading the graphic driver («libGL error: unable to load driver: r600_dri.so«). As it is explained here, it seems that Google packaged with Android Studio an old version of one library, and the emulator fails when it tries to use my graphic card.
The solution? Very easy: to use the system libraries instead of the packaged in Android Studio. How? Adding «-use-system-libs» at the end of the command. So:
./emulator -avd EMULATOR_NAME -netspeed full -netdelay none -use-system-libs
The definitive solution is to set the ANDROID_EMULATOR_USE_SYSTEM_LIBS environment variable to 1 for your user/system. With this change, when I run the emulator within Android Studio, it will also load the system libraries.
PS 1 — The easiest way I found to set the environment variable, it’s to modify the script that launches the Android Studio (studio.sh, in my case it is inside /opt/android-stuido/bin), and add at the beginning this:
export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1
PS 2 — I work with Debian Jessie and Android Studio 2.2.3. My graphic card is an ATI Radeon HD 6850 by Sapphire.
UPDATE December 2017: I had the same problem with Debian Stretch and Android Studio 3.0.1 (same graphic card). The same solution works for me.


Сообщение было отмечено mathus как решение