3

When trying to create a new virtual device on Android Studio, I receive an error,

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

The error I found is

2018-01-31 10:01:34,090 [se-915-b08] WARN - vdmanager.AvdManagerConnection - java.nio.file.NoSuchFileException: /Users/Name/.android/avd/Nexus_5X_API_27.ini

Ramesh sambu
  • 3,577
  • 2
  • 24
  • 39
Carl O'Beirne
  • 309
  • 1
  • 6
  • 17

4 Answers4

7

It can be fixed by changing owner of ~/.android to by executing sudo chown <your_user_name> .android on terminal.

Shahrukh Azeem
  • 325
  • 5
  • 10
1

This error occures because android studio cant see your .android file Find file ~/.android

cd ~/.android

you should be out of .android file (at least it worked like this on me otherwise it gives error chown: .android: No such file or directory)

cd ..

then give permission to file

sudo chown <your_user_name> .android

enter your password if asks
then try again creating avd in android studio

CodeSeven
  • 11
  • 1
0

For me, I could not even find idea.log file. I tried many things but updating android studio (4.2.1 at the moment) and other components to the latest finally fixed it. Although, for the record I did change the owner of .android folder to my username. But that on itself didn't fix it even if it might have been part of the fix.

Dhunju_likes_to_Learn
  • 1,201
  • 1
  • 16
  • 25
0

I started having this issue after I upgraded to MacOS Monterrey. I tried the changing permission solution but no success. The fix for me was to disable and enable back the Android Emulator by doing the following:

  1. On Android Studio, go to Tools -> SDK Manager -> SDK Tools
  2. Uncheck Android Emulator and click on Apply
  3. Check back Android Emulator and click on Apply

After that I was able to create new AVDs without issue.

rsc
  • 10,348
  • 5
  • 39
  • 36