An error occurred while creating the avd see idea log for details

I have just started using Android studio every time i try to install an avd i get an error message "An error occurred while creating the AVD. See idea.log for details." i am using windows 10 And in...

I have just started using Android studio every time i try to install an avd i get an error message «An error occurred while creating the AVD. See idea.log for details.» i am using windows 10 And in log file i get this.

2019-12-17 13:32:13,479 [ thread 35]   WARN - vdmanager.AvdManagerConnection - Failed to create the SD card. 
2019-12-17 13:32:13,480 [ thread 35]   WARN - vdmanager.AvdManagerConnection - Failed to create sdcard in the AVD folder. 
2019-12-17 13:32:16,987 [Alarm Pool]   INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 55 ms

Can Anybody help? Thanks in Advance.

asked Dec 17, 2019 at 8:08

HARSH ASHRA's user avatar

I was try to reinstall Android SDK, and after start application sdk was opennig last project.

Close the project and Android SDK will start setup wizard wich will download all necessary files and install Emulator.

answered Jan 13, 2020 at 9:23

Saulius's user avatar

I had the same problem and the same message with the sd card.

Firstly, I had to (or not, I don’t know exactly what fixed the problem) rename my windows username because I had a whitespace char in it (there shouldn’t be whitespaces in the route to the Android sdk (C:Users»yourWindowsUsernameWithoutWhitespace»….), even AS warns you). It’s not that simple to change it but here’s the solution:

https://support.microsoft.com/hu-hu/help/2454362/renaming-a-user-account-does-not-automatically-change-the-profile-path

(In AS I tried to redownload and reinstall the android sdk to a different folder without space in it’s route but for some reason the installation never finished)

After this, the problem still existed. I closed Android Studio and ran it as administrator. And worked! I hope I helped

answered Jul 30, 2020 at 11:50

bidambidam's user avatar

0

Try to uninstall Android emulator and re-install again. It worked for me.
Re-install Android emulator

answered Aug 31, 2022 at 2:55

trong.nguyen's user avatar

Follow below steps to install AVD in android studio

  1. Select ‘Clone Device’ option , selecting this will add new device into list with appending ‘(edited)1’ string.
  2. Select this clone device: press ‘Next’
  3. Select this clone device: press ‘Next’
  4. Select system image as per your requirement: press ‘Next’
  5. Select ‘Show Advance Setting’ scroll down: in ‘Memory and Storage’ choose ‘External file’ (which is disable/gray-out in actual device but available in clone device) keep entry empty.
  6. Press ‘Finish

answered Apr 10, 2021 at 23:40

amal-harrak's user avatar

Содержание

  1. Android Studio – An error occurred while creating the AVD. See idea.log for details
  2. Error: An error occurred while creating the AVD. See idea.log for details – What it means to say:
  3. Fix “Android emulator gets killed” Error in Android Studio
  4. Method 1: Update Android Emulator to the Latest Release
  5. Method 2: Clear your Disk Space
  6. Method 3: Enabling Support for OpenGL
  7. Method 4: Install the Intel x86 Emulator Accelerator on your system
  8. Method 5: Parallel SDK Installation (Rare)
  9. Conclusion

Android Studio – An error occurred while creating the AVD. See idea.log for details

Error: An error occurred while creating the AVD. See idea.log for details – When it occurs: When you want to add an AVD into your android studio then you will face this issue. This issue will not allow to add your required virtual device to android studio unless you solve it.

Error: An error occurred while creating the AVD. See idea.log for details – What it means to say:

Solution : Provide file all type permission(777) to the android studio folder.

For Mac Users : You can use file ownership commands through terminal
Changing File Owner with Chown by command through terminal:

Command 1: sudo chown -v cory myFile.rtf
After this it will ask for system password.

For Linux Users : Below command will do the work for you
sudo apt-get install lib32stdc++6

For Windows Users :
Follow below steps to install AVD in android studio
1. Select ‘Clone Device’ option , selecting this will add new device into list with appending ‘(edited)1’ string.
2. Select this clone device: press ‘Next’
3. Select this clone device: press ‘Next’
4. Select system image as per your requirement: press ‘Next’
5. Select ‘Show Advance Setting’ scroll down: in ‘Memory and Storage’ choose ‘External file’ (which is disable/gray-out in actual device but available in clone device) keep entry empty.
6. Press ‘Finish’

Read More –

Note: Also check you have available space of your drive that can also cause these issues to occur.

Источник

Fix “Android emulator gets killed” Error in Android Studio

Sometimes, (maybe after updating Android Studio) you might encounter a strange error, which might cause you a nightmare, the error is thrown by the Studio itself and it says:

Uggh…Now, what’s this error all about? Why did it happen on the system? How do I fix it? Follow the Steps Below, and you’ll certainly solve it yourself!

You might encounter this error when you start the Android Emulator and then wait for it to get started but only see the process running and the GUI never comes into play, this is especially very nasty and troublesome when you have some important work to do (maybe a client project to test in the 11th hour) and then suddenly your hope of running the emulator gets numb because the process which was still running went out nowhere and got killed.

Method 1: Update Android Emulator to the Latest Release

As blunt as it may sound, but updating the emulator which you’re running could simply end your problem, for eg. if you’re working on API Level 30 and your emulator version is 30.1.2 then updating it to 30.1.5 would perhaps resolve your issue. Updating Emulator is a breeze, simply: Android Studio -> Go to preferences -> Android SDK -> Then find and update the Android Emulator from the list. Use the Image below if you get stuck at any place:

Updating Android Emulator

Method 2: Clear your Disk Space

Sometimes, the only force acting between you and the emulator running is the low disk space, clearing the disk space and re-running the emulator (after restarting the studio) could resolve this issue for you, it’s simply an easy lookout for the node modules .

ProTip: Clearing you Android Studio cache could clear huge chunks of data!

Method 3: Enabling Support for OpenGL

If your emulator is a device with the Google Play Services enabled, the error might be related to “OpenGL” to fix this, simply:

  1. Go to: Tools >Android >AVDManager
  2. Press the “edit” (pencil) icon next to your AVD
  3. Change “Graphics” to “Software”.

Method 4: Install the Intel x86 Emulator Accelerator on your system

Apart from updating the Android Studio Emulator on your system, you should also consider installing the Intel x86 Emulator Accelerator as Android is a large Operating System and some system images run on the old x86 bit architecture. To Install the x86 Emulator Accelerator

  1. Go to Preferences
  2. Navigate to Android SDK
  3. Mark the Checkbox against “Intel x86 Emulator Accelerator (HAXM)”

You may refer to the below screenshot if you need help:

Installing the Intel x86 Emulator (HAXM)

Method 5: Parallel SDK Installation (Rare)

If all the above-mentioned steps didn’t work out for you and you’re still not able to run the Emulator, it might be the fact that there are two SDK Installations in your system and the “ANDROID_HOME” points to the wrong location. This error might occur if you recently installed Nativescript or software like that. In order to fix it, follow:

  1. Android Studio settings
  2. Find the proper Android SDK location
  3. Update the environment variable and restart Android Studio.

Fixing Parallel SDK Installation

Conclusion

All the above-mentioned methods would’ve solved your issue, and your emulator would be up and running again, however, if the odds turn on to be against you, always remember that a clean installation of the whole setup would fix this problem.

Источник

Issue

I followed the the link below, to create a android virtual device(AVD).

https://developer.android.com/studio/run/managing-avds.html

As soon as I click on finish button, it gives me the following error:

An error occurred while creating the AVD. See idea.log for details.
As I can see last line gives access denied error. Is it requireing the permissions to the .android folder? When I try to give permissions to .android folder, It doesn’t allow me. It says

chmod: cannot access ‘777’: No such file or directory

some last lines of idea.log file are

idea.log

2018-01-11 13:00:17,173 [d thread 4]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 86ms; general responsiveness: ok; EDT responsiveness: ok 
2018-01-11 13:00:18,629 [d thread 1]   INFO - .script.IdeScriptEngineManager - javax.script.ScriptEngineManager initialized in 72 ms 
2018-01-11 13:00:19,672 [se-915-b01]   INFO - pl.ProjectRootManagerComponent - project roots have changed 
2018-01-11 13:00:19,706 [d thread 2]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 2ms; general responsiveness: ok; EDT responsiveness: ok 
2018-01-11 13:00:19,766 [d thread 2]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 60ms; general responsiveness: ok; EDT responsiveness: ok 
2018-01-11 13:00:22,373 [d thread 3]   INFO - tools.idea.ddms.adb.AdbService - Initializing adb using: /home/shivam/Android/Sdk/platform-tools/adb, client support = false 
2018-01-11 13:00:22,466 [err reader]   WARN -            #com.android.ddmlib - * daemon not running; starting now at tcp:5037 
2018-01-11 13:00:26,005 [err reader]   WARN -            #com.android.ddmlib - * daemon started successfully 
2018-01-11 13:00:26,220 [d thread 3]   INFO - tools.idea.ddms.adb.AdbService - Successfully connected to adb 
2018-01-11 13:00:46,918 [se-915-b01]   WARN - vdmanager.AvdManagerConnection - java.nio.file.AccessDeniedException: /home/shivam/.android/avd/Nexus_5X_API_23.ini 
2018-01-11 13:01:04,305 [d thread 1]   INFO - tools.idea.ddms.adb.AdbService - Initializing adb using: /home/shivam/Android/Sdk/platform-tools/adb, client support = true 
2018-01-11 13:01:04,323 [err reader]   WARN -            #com.android.ddmlib - * daemon not running; starting now at tcp:5037 
2018-01-11 13:01:07,454 [err reader]   WARN -            #com.android.ddmlib - * daemon started successfully 
2018-01-11 13:01:07,656 [d thread 1]   INFO - tools.idea.ddms.adb.AdbService - Successfully connected to adb 
2018-01-11 13:01:54,534 [se-915-b01]   WARN - vdmanager.AvdManagerConnection - java.nio.file.AccessDeniedException: /home/shivam/.android/avd/Nexus_5X_API_23.ini 

Solution

Ok, I got it working you need to give the 777 permissions to .android folder that is hidden. run the following command in terminal, where hidden folder.
You need to use the -R flag, which will recurse into every subdirectory.

For example, running sudo chown -R my_username:my_username .android will make .android and all subdirectories owned by you.

Answered By — Shivam

so first. I’ve installed Android Studio and its working fine, except when I try to create AVD virtual device it says:

An error occurred while creating the AVD. See idea.log for details.

i found a solution to use
sudo apt-get install lib32stdc++6
at first it did not work it brought out

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it

so i decided to search for a solution and i found a few soultions from here Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? — Ask Ubuntu
So i tried the command again to fix my android studio

sudo apt-get install lib32stdc++6

then it brought out:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 lib32stdc++6 : Depends: lib32gcc1 (>= 1:4.2) but it is not going to be installed
                Depends: libc6-i386 (>= 2.18) but it is not going to be installed
 libobasis5.3-calc : Depends: libobasis5.3-core (>= 5.3.1.2) but it is not installable
                     Depends: libobasis5.3-core (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-en-us-base : Depends: libobasis5.3-en-us (>= 5.3.1.2) but it is not installable
                           Depends: libobasis5.3-en-us (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-en-us-calc : Depends: libobasis5.3-en-us (>= 5.3.1.2) but it is not installable
                           Depends: libobasis5.3-en-us (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-en-us-math : Depends: libobasis5.3-en-us (>= 5.3.1.2) but it is not installable
                           Depends: libobasis5.3-en-us (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-en-us-res : Depends: libobasis5.3-en-us (>= 5.3.1.2) but it is not installable
                          Depends: libobasis5.3-en-us (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-extension-javascript-script-provider : Depends: libobasis5.3-core (>= 5.3.1.2) but it is not installable
                                                     Depends: libobasis5.3-core (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-extension-mediawiki-publisher : Depends: libobasis5.3-core (>= 5.3.1.2) but it is not installable
                                              Depends: libobasis5.3-core (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-filter-data : Depends: libobasis5.3-core (>= 5.3.1.2) but it is not installable
                            Depends: libobasis5.3-core (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-gnome-integration : Depends: libobasis5.3-core (>= 5.3.1.2) but it is not installable
                                  Depends: libobasis5.3-core (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-graphicfilter : Depends: libobasis5.3-core (>= 5.3.1.2) but it is not installable
                              Depends: libobasis5.3-core (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-images : Depends: libobasis5.3-core (>= 5.3.1.2) but it is not installable
                       Depends: libobasis5.3-core (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-kde-integration : Depends: libobasis5.3-core (>= 5.3.1.2) but it is not installable
                                Depends: libobasis5.3-core (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-librelogo : Depends: libobasis5.3-writer (>= 5.3.1.2) but it is not installable
                          Depends: libobasis5.3-writer (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-ogltrans : Depends: libobasis5.3-impress (>= 5.3.1.2) but it is not installable
                         Depends: libobasis5.3-impress (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-ooofonts : Depends: libobasis5.3-core (>= 5.3.1.2) but it is not installable
                         Depends: libobasis5.3-core (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-pyuno : Depends: libobasis5.3-core (>= 5.3.1.2) but it is not installable
                      Depends: libobasis5.3-core (<= 5.3.1.2-2) but it is not installable
 libobasis5.3-xsltfilter : Depends: libobasis5.3-core (>= 5.3.1.2) but it is not installable
                           Depends: libobasis5.3-core (<= 5.3.1.2-2) but it is not installable
 libreoffice5.3-base : Depends: libreoffice5.3 (>= 5.3.1.2) but it is not installable
                       Depends: libreoffice5.3 (<= 5.3.1.2-2) but it is not installable
                       Depends: libobasis5.3-base (>= 5.3.1.2) but it is not installable
                       Depends: libobasis5.3-base (<= 5.3.1.2-2) but it is not installable
 libreoffice5.3-calc : Depends: libreoffice5.3 (>= 5.3.1.2) but it is not installable
                       Depends: libreoffice5.3 (<= 5.3.1.2-2) but it is not installable
 libreoffice5.3-dict-es : Depends: libobasis5.3-core (>= 5.3.1.2) but it is not installable
                          Depends: libobasis5.3-core (<= 5.3.1.2-2) but it is not installable
                          Depends: libreoffice5.3 (>= 5.3.1.2) but it is not installable
                          Depends: libreoffice5.3 (<= 5.3.1.2-2) but it is not installable
 libreoffice5.3-dict-fr : Depends: libobasis5.3-core (>= 5.3.1.2) but it is not installable
                          Depends: libobasis5.3-core (<= 5.3.1.2-2) but it is not installable
                          Depends: libreoffice5.3 (>= 5.3.1.2) but it is not installable
                          Depends: libreoffice5.3 (<= 5.3.1.2-2) but it is not installable
 libreoffice5.3-en-us : Depends: libreoffice5.3 (>= 5.3.1.2) but it is not installable
                        Depends: libreoffice5.3 (<= 5.3.1.2-2) but it is not installable
                        Depends: libobasis5.3-en-us (>= 5.3.1.2) but it is not installable
                        Depends: libobasis5.3-en-us (<= 5.3.1.2-2) but it is not installable
                        Depends: libobasis5.3-en-us-writer (>= 5.3.1.2) but it is not installable
                        Depends: libobasis5.3-en-us-writer (<= 5.3.1.2-2) but it is not installable
 libreoffice5.3-impress : Depends: libreoffice5.3 (>= 5.3.1.2) but it is not installable
                          Depends: libreoffice5.3 (<= 5.3.1.2-2) but it is not installable
                          Depends: libobasis5.3-impress (>= 5.3.1.2) but it is not installable
                          Depends: libobasis5.3-impress (<= 5.3.1.2-2) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

I tried my android studio AVD again and it still brought out the same error.
I tried the command a recommended by the terminal

apt-get -f install

and got:

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

switched to root and tried it again and got:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  gir1.2-javascriptcoregtk-4.0 gir1.2-json-1.0 gir1.2-soup-2.4 gir1.2-webkit2-4.0 libido3-0.1-0
  switchboard-plug-gcc-bluetooth
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  libobasis5.3-calc libobasis5.3-en-us-base libobasis5.3-en-us-calc libobasis5.3-en-us-math
  libobasis5.3-en-us-res libobasis5.3-extension-javascript-script-provider
  libobasis5.3-extension-mediawiki-publisher libobasis5.3-filter-data libobasis5.3-gnome-integration
  libobasis5.3-graphicfilter libobasis5.3-images libobasis5.3-kde-integration libobasis5.3-librelogo
  libobasis5.3-ogltrans libobasis5.3-ooofonts libobasis5.3-pyuno libobasis5.3-xsltfilter
  libreoffice5.3-base libreoffice5.3-calc libreoffice5.3-dict-es libreoffice5.3-dict-fr
  libreoffice5.3-en-us libreoffice5.3-impress
0 upgraded, 0 newly installed, 23 to remove and 102 not upgraded.
23 not fully installed or removed.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/

tried over and over again. but no progress.
I don’t know what to do right now!

0 / 0 / 0

Регистрация: 14.12.2020

Сообщений: 35

1

12.02.2021, 17:09. Показов 1354. Ответов 9


Здравствуйте! Установила Android Studio, создаю эмуляторы (AVD). После запуска эмулятора отображается просто мобильный с черным экраном. Через некоторое время выдает ошибку: Timed out after 300seconds waiting for emulator to come online.

Добавлено через 1 час 9 минут
Помогите пожалуйста новичку!

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



0



20 / 18 / 4

Регистрация: 04.12.2009

Сообщений: 82

12.02.2021, 17:23

2

Попробуйте удалить все эмуляторы и заново загрузить и установить один из них.



0



0 / 0 / 0

Регистрация: 14.12.2020

Сообщений: 35

12.02.2021, 17:46

 [ТС]

3

Спасибо, что откликнулись. Попробовала удалить и опять установить. Не помогло. Правда, когда удаляла, мне показывало ошибку: An error occurred while deleting the AVD. See idea.log for details. А где этот idea.log я не нашла.



0



133 / 124 / 21

Регистрация: 28.06.2015

Сообщений: 594

13.02.2021, 12:41

4

Огласите конфигурацию ПК



0



0 / 0 / 0

Регистрация: 14.12.2020

Сообщений: 35

13.02.2021, 14:54

 [ТС]

5

Процессор: AMD E2-1800 APU with Radeon(tm) HD Graphics 1.70 GHz
Оперативная память: 8,00 ГБ
Тип системы: 64-разрядная операционная система, процессор x64
Windows 10 Pro

Добавлено через 13 минут
Еще у меня при запуске эмулятора иногда выдает ошибку: The ADB binary found at F:Android SDKplatform-toolsadb.exe is obsolete and has serious performance problems with the Android Emulator. Please update to a newer version to get significantly faster app/file transfer.
Хотя думаю, это с проблемой никак не связано.



0



1560 / 1161 / 423

Регистрация: 08.05.2012

Сообщений: 5,205

14.02.2021, 12:46

6

Цитата
Сообщение от Aloisa
Посмотреть сообщение

AMD E2-1800

Цитата
Сообщение от Aloisa
Посмотреть сообщение

has serious performance problems

Цитата
Сообщение от Aloisa
Посмотреть сообщение

Хотя думаю, это с проблемой никак не связано.

Ты наверное шутишь, да? Ну ладно, предположим, я этого не видел. Там хоть виртуализация есть? Hypervisor установлен? Вообще с таким железом, кроме как подключить девайс по usb, почти нет вариантов.



0



0 / 0 / 0

Регистрация: 14.12.2020

Сообщений: 35

14.02.2021, 13:37

 [ТС]

7

Виртуализацию включила в БИОСе, Android Emulator Hypervisor Driver установлен.

Добавлено через 6 минут
Может быть, мне попробовать разрабатывать в Intellij Idea вместо Android Studio? Или тоже не потянет?



0



1560 / 1161 / 423

Регистрация: 08.05.2012

Сообщений: 5,205

14.02.2021, 13:49

8

Трудно что-то сказать, не видя проблему. Если проект успешно собирается до запуска эмулятора и все настройки выполнены корректно, попробуй создать самый дешманский девайс с самым маленьким экраном, апи и объёмом памяти, закрыв все сторонние программы (IDE тут не причём).



0



133 / 124 / 21

Регистрация: 28.06.2015

Сообщений: 594

15.02.2021, 09:04

9

Да процессор «очень слаб». Кроме того студия объявила поддержку amd сравнительно недавно, в середине 2018 года. Так что вполне возможно что на деле поддержка кривая, и ваш опыт один из вариантов такой кривизны.

Цитата
Сообщение от Aloisa
Посмотреть сообщение

в Intellij Idea вместо Android Studio?

Подключите реальное устройство, и посмотрите что будет.



0



0 / 0 / 0

Регистрация: 14.12.2020

Сообщений: 35

16.02.2021, 13:28

 [ТС]

10

Спасибо всем, ничего так и не заработало, но я частично решила проблему — подключила телефон через usb. Пока буду так отлаживать.



0



IT_Exp

Эксперт

87844 / 49110 / 22898

Регистрация: 17.06.2006

Сообщений: 92,604

16.02.2021, 13:28

Помогаю со студенческими работами здесь

Инструменты под Android либо эмуляторы
люди добрые, сами мы не местные, подскажите, пожалуйста, а есть ли какие-нибудь инструменты для…

Проблемы с первым запуском Android Studio (AMD, Win10x64, Android Studio 4.1.1), прошу совета
Вводные: AMD, Win10x64, Android Studio 4.1.1.
java version &quot;15.0.1&quot; 2020-10-20
Java(TM) SE…

(Android studio, java) Ошибка при импорте библиотеки cannot resolve symbol android studio
Вот библиотека https://github.com/mik3y/usb-serial-for-android.
Устанавливал так, File -&gt; New -&gt;…

Android Studio, импорт не видит в проекте import android.annotation.AttrRes? — Android
Android Studio не видит классы из пэкэджа android, хотя он есть. На скрине видно, открыт класс…

Работа с файлами android которые находятся не в папке проекта Android Studio
Всех приветствую,
начал разработку приложения под Android и не могу разобраться как работать с…

Android Studio не находит функцию TextView в пакете Android.Widget
Я создал новый проект в Android Studio. Android Studio не находит функцию
TextView в пакете…

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:

10

Понравилась статья? Поделить с друзьями:
  • An error occurred while consolidating disks msg fileio lock
  • An error occurred while connecting to steam please try again
  • An error occurred while connecting to epic servers please try again later перевод
  • An error occurred while configuring oracle xe database
  • An error occurred while communicating with the remote host