Reputation: 329
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
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:
After that I was able to create new AVDs without issue.
Upvotes: 3
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
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
Reputation: 325
It can be fixed by changing owner of ~/.android
to by executing sudo chown <your_user_name> .android
on terminal.
Upvotes: 7