Carl O'Beirne
Carl O'Beirne

Reputation: 329

Unable to create AVD in Android Studio Mac

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

Upvotes: 4

Views: 3166

Answers (4)

rsc
rsc

Reputation: 10679

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.

Upvotes: 3

Dhunju_likes_to_Learn
Dhunju_likes_to_Learn

Reputation: 1386

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.

Upvotes: 0

CodeSeven
CodeSeven

Reputation: 11

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

Upvotes: 1

Shahrukh Azeem
Shahrukh Azeem

Reputation: 325

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

Upvotes: 7

Related Questions