Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 488
Carl O'Beirne Avatar asked Oct 18 '25 14:10

Carl O'Beirne


2 Answers

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

like image 170
Shahrukh Azeem Avatar answered Oct 20 '25 04:10

Shahrukh Azeem


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.

like image 28
rsc Avatar answered Oct 20 '25 04:10

rsc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!