Could not start avd android studio что делать
Перейти к содержимому

Could not start avd android studio что делать

  • автор:

Could not start AVD

I install the latest version of Android Studio Android Studio 4.0.1.then after i open Android studio and create sample project.after that i open AVD manager and "create virtual device",then after i download Android 10.0+ API 30 level emulator. Issue is AVD not start.please check Images

Window 7 Professional,Service Pack 1, 8GB RAM,64-bit,intel core i3,Asus

AVD Manager

Vertual Device Configuration I already enable VT- x in my pc

4 Answers 4

I made VT-x enabled and saved it many times,but AVD did not start. I changed lithium battery on MB,so now AVD works.

I think if lithium battery on MB is low,BIOS will not work properly.

I did this and it solved my problem:

  1. Go to SDK Manager -> SDK Tools -> remove "Intel x86 Emulator Accelerator (HAXM Installer)"
  2. Click OK to uninstall HAXM.
  3. When the uninstall process is complete, close SDK Manager, open it again and install HAXM again the same way.
  4. Optional: Wipe data of your emulator and perform a cold boot.
  5. If the problem still exists uninstall/install Android emulator in SDK Manager -> SDK Tools as well.

If your system has low resources (RAM, CPU) like mine, it just can’t. Don’t push it.

Ali Has's user avatar

It might be the issue with HAXM. To resolve this issue first install HAXM in AVD creation part. If it is showing installation failed then we should manually install it into the system.

For that, go to the Intel website, download the HAXM installer that they provide (instead of using the one downloaded through Android Studio).

After installing HAXM enable intel virtualization support in your BIOS. By default virtualization will be disabled. You can use the following link to enable virtualization in your BIOS.

Android studio ошибка could not start avd

I install the latest version of Android Studio Android Studio 4.0.1.then after i open Android studio and create sample project.after that i open AVD manager and «create virtual device»,then after i download Android 10.0+ API 30 level emulator. Issue is AVD not start.please check Images

Window 7 Professional,Service Pack 1,
8GB RAM,64-bit,intel core i3,Asus

AVD Manager

Vertual Device Configuration
I already enable VT- x in my pc

7,944 8 gold badges 47 silver badges 62 bronze badges

asked Aug 16, 2020 at 12:17

I made VT-x enabled and saved it many times,but AVD did not start.
I changed lithium battery on MB,so now AVD works.

I think if lithium battery on MB is low,BIOS will not work properly.

answered Dec 1, 2020 at 7:08

I did this and it solved my problem:

  1. Go to SDK Manager -> SDK Tools -> remove «Intel x86 Emulator Accelerator (HAXM Installer)»
  2. Click OK to uninstall HAXM.
  3. When the uninstall process is complete, close SDK Manager, open it again and install HAXM again the same way.
  4. Optional: Wipe data of your emulator and perform a cold boot.
  5. If the problem still exists uninstall/install Android emulator in SDK Manager -> SDK Tools as well.

If your system has low resources (RAM, CPU) like mine, it just can’t. Don’t push it.

answered Jan 26, 2021 at 18:02

Ali Has Ali Has

540 1 gold badge 6 silver badges 21 bronze badges

In addition to reinstalling HAXM, I added android SDK , JDK & JRE paths in environment variable and I got AVD working.

Add new entry user variables in environment variables where

variable name= ANDROID_HOME
value= C:UsersusernameAppDataLocalAndroidSdk

variable name= JAVA_HOME
value= C:Program FilesJavajdk-11.0.11

variable name= JRE_HOME
value= C:Program FilesJavajre1.8.0_291

Add new entries/apend ANDROID_HOME;JAVA_HOME;JRE_HOME to path user variable in environment variable.

answered Jun 15, 2021 at 14:45

29.12.2020, 20:34. Показов 10969. Ответов 12

Не запускается виртуальный девайс в андроид студио.
Выдает: Could not start AVD
Помогите пожалуйста!!

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

Вот такая ошибка.

Напишите конфигурацию ПК

Я не знаю, что это такое((( Обьясни пожалуйста

13844 / 8088 / 2468

Сообщение от mathus

Процессор, память, операционная система, видеокарта и т.д.

Хотя в данном случае достаточно знать процессор. Вангую, что у тебя AMD.

а я не знаю, какой у меня процессор..

Добавлено через 5 секунд
ну только вроде интел называется

13844 / 8088 / 2468

Сообщение от mathus

я не знаю, какой у меня процессор

Правой кнопочкой мыши на Мой компьютер (винда ведь?) — Свойства

А нет, есть. Вот, нарыл что то.

нам сказали не ставить генимоушен

13844 / 8088 / 2468

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

Решение

mathus, включай виртуализацию в биосе, ссылка выше

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 .

https://amdy.su/wp-admin/options-general.php?page=ad-inserter.php#tab-8

У меня была другая проблема . Например, я назначил неправильный 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.

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.

user avatar

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.)

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:

2 — Start the emulator with this command:

You can see the name of your (previously created with AVD Manager) emulators with this command:

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:

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:

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.

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:

2 — Start the emulator with this command:

You can see the name of your (previously created with AVD Manager) emulators with this command:

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:

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:

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.

Android Studio – эмулятор Android для ПК, имитирующий работу данной ОС. Применяется как среда для разработки мобильных приложений. Использует AVD-конфигурацию, определяющую, что нужно эмулировать: форм-фактор, обычную ОС Андроид или части ОС и варианты настроек.

Подробнее о том, что такое Android Studio, вы можете прочитать в отдельной статье, перейдя по ссылке.

Эмулятор в Android Studio не запускается

Инструкция по запуску

Рассмотрим, как запустить эмулятор Android Studio.

  • Загружаем пакет отсюда — developer.android.com/studio?hl=ru.

android studio emulator

  • Устанавливаем скачанное приложение. Важно! При загрузке выберите места для двух частей: студии и SDK (можно установить в разные папки). Для SDK нужно, чтобы на диске было свободно 6 – 8 Гб (3,2 Гб для установки и еще запас в 3-5 Гб на будущие обновления).
  • Ждем окончания загрузки SDK и установки.

android studio эмулятор android

  • Запускаем Android Studio.
  • Создаем новый проект («Start a new project»).

android studio эмулятор

  • Заполняем поля: имя, домен, расположение на диске. Выбираем версию SDK.
  • Кликаем «Finish» и ждем, пока AS будет создавать проект (1-5 минут).

как запустить эмулятор android studio

  • Жмем вверху «AVD Manager», затем внизу слева кнопку «Create Virtual Device».

как запустить эмулятор android studio

  • Кликаем «Next», «Finish».
  • Жмем «Shift + F10».
  • Выбираем, на каком устройстве запускать готовое приложение.

android studio эмулятор не запускается

  • Настройка завершена — эмулятор готов к работе.

Возможные ошибки и методы решения

Бывает, что приложение не хочет запускаться, или на каком-то этапе создания выдаются ошибки.

Рассмотрим, почему Android Studio эмулятор не запускается, и перечислим методы решения проблем.

не работает эмулятор android studio

Синхронизация Android Gradle завершилась неудачно из-за целевой версии

Необходимо проверить, установлен ли API 23. Если нет — установить через Менеджер SDK.

как запустить в андроид студио эмулятор

Класс действия <> не существует

  • Перейти в настройки модуля, затем «Flavors», «Идентификатор приложения» и добавить название пакета.
  • Установить название класса с полным путем (например: .com.example.Splash вместо .Splash).
  • Перезапустить IDE.

эмулятор для андроид студио

  • Перейти по пути: «Настройки» — «Приложения». Выбрать приложение, открыть меню переполнения (верхний угол справа) и нажать «Удалить всех пользователей». Загрузить приложение заново.
  • Перезапустить демон ADB (ввести в терминале «adb kill-server», ниже — «adb start-server»).

  • Очистить проект («Сборка» — «Чистый проект»).

запуск эмулятора android studio

Ошибка com.google.android.gms / play-services / 8.4.0 / gradle: 2.0.0-alpha5

Чтобы исправить ошибку, обновите «project/grandle.build» и дистрибутив «Grandle».

Студийный модуль Android не может найти пакет

  • Импортировать проект библиотеки по пути «File» – «New» – «Import Module». Затем посмотреть, есть ли внутри папки проекта файл «build.gradle».

  • Проверить, одинаковая ли версия плагина для Андроид (в Структуре проекта в разделе «Пакет») и у подключаемых модулей. Если различаются — сделать одинаковыми.
  • Зайти в Структуру проекта, выбрать проект слева, изменить версию плагина на «Gradle». Если синхронизация выдает ошибку, то перейти к Структуре проекта, выбрать версию плагина «Project.undo».

Тип Diamond не поддерживается

  • Перейти в «Файл» — «Структура проекта» — «Свойства». Прописать для Source Compability == 1.7, для Target Compability == 1.7.

  • Проверить версию JDK. Оператор Diamond появляется у JDK 7.
  • Обновить BuildToolsVersion и SDK.
  • В уровне языка (в настройках проекта, в разделе «Проект») выбрать вариант «Diamonds, ARM, Multi-catch etc».

android studio настройка эмулятора

Android Studio — Robolectric: android.content.res.Resources $ NotFoundException: нет такой метки com.my.app:string/app_name

Пути устранения ошибки.

  • Посмотреть, совпадает ли имя пакета с именем приложения. Если не совпадает — исправить.
  • Проверить, созданы ли и правильно ли названы каталоги, переданные приложению.

Ошибка получения родительского элемента

Чтобы исправить, проверьте, одинаковы ли версия SDK для компиляции и библиотеки поддержки. Если отличаются — исправить.

What you can do when your Android Studio could not start AVD on Ubuntu 18.04

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.

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!

Could not start avd android studio

Question: Emulator Cannot start from AVD Manager in ubuntu using android studio. Solution 1: you should upgrade studio to 1.x and maybe integrate genymotion to android studio.

Android Studio — Panic: Could not open AVD

After many hours of fixing Gradle issues, I was able to build my test app in android studio. But when I tried to run it in an AVD, it just won't open.

This is the log:

P.S.: I've defined the environment variable ANDROID_SDK_HOME to point to the .android directory.

Solution 1:

Okay, my libraries are in D: drive. So I had to copy the .android folder from d:\myName\ to c:\Users\myName\ . That fixed it.

Solution 2:

You can use mklink (builtin of cmd.exe but NOT present in Powershell) to make a link like you would in linux. You must be an administrator to run the command, but once you do it will look like the directory is right there.

Run cmd.exe as an administrator. Then in my case I issued the following:

Creating a regular windows shortcut (right click etc.) does not work.

Solution 3:

I got a slightly different solution working. I created a symlink/shortcut from C:\Users\myName\.android to D:\Users\myName\.android (right-click, create shortcut)

Android Studio AVD Not Starting

I recently updated android studio to version 0.9.9 and now my AVD machines are not starting. I get a grey box that pops up for half a second with a status bar and a button that says "background" and on the bottom log it says "C:\Users\MyUsername\AppData\Local\Android\sdk\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5_API_21_2".

In the previous Android Studio version I was able to run the machines and apps inside them with no problem, but after the update it does not work.

I tried several solutions I read on other threads and none of them worked, since I already had the path set up from my previous set up.

Solution 1:

you should upgrade studio to 1.x and maybe integrate genymotion to android studio.

http://ngotuongdan.wordpress.com/2014/05/04/gia-lap-android-voi-genymotion/ help install genymotion

Solution 2:

New updated android studio version is available now. I updated my android studio and the nexus emulator is working. Find the menu Help->Check for update in android studio.

Solution 3:

Updating and installing HAXM (through the sdk manager, then navigating to the .exe location) solved my problem.

AVD Manager don't start

(Solved see bellow)

My AVD Manager doesn't launch while SDK Manager works good. It worked once yesterday (so i could create one emulator) but now i can't access AVD Manager (no error, just don't launch).

When i Launch a program from Eclipse, my last emulator starts ok and all is good, but i can't manage it or create another one.

  • Java is OK (JAVA_HOME. etc.)
  • No space in SDK Path
  • Eclipse and all is good, i can test on the last emulator i created.. except access to AVD Manager.

EDIT : SOLVED I could launch again my AVD Manager after deleting my AVD settings in %USER%\.android\avd . I think i had something wrong in some AVD.

Solution 1:

SOLVED I could launch again my AVD Manager after deleting my AVD settings in %USER%.android\avd . I think i had something wrong in some AVD.

Solution 2:

Check out this post. It focuses on several different issues that one encounter during setting up AVD manager.

Also take a look at this post. It might also be helpfull.

Emulator Cannot start from AVD Manager in android studio

Emulator Cannot start from AVD Manager in ubuntu using android studio. But when I type following code in terminal emulator is running.

Can any one help me to solve this problem to run emulator form AVD Manage.

When I click on avd Manager a Dialog is shown with following message Dialog Box Message Is:

Run Tab Error Message is:

Solution:

The issue is related to libstdc++.so.6 go to Android sdk and can be resolved with the following command:

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *