Error while waiting for device: Could not start AVD, virtualization is turned on

Viewed 12931

recently installed android studio on my pc, created virtual device but when I click " run 'app' " the only thing that happens is error "Error while waiting for device: Could not start AVD", this error is in "Run" tool window, besides that there's absolutely no information what and why that happens.

Few things worth mentioning:

I have enabled virtualization in bios
I tried deleting virtual device and create new one, no change
I have installed android sdk

Anyone knows how to resolve that problem?

5 Answers

Check AVD Manager if there is no permission denied for /dev/kvm. If it is the issue, open the terminal in Android Studio and run sudo chmod 777 /dev/kvm and it will solve your problem.

Better solution is change the ownership of /dev/kvm from root to the owner of current app by running the command sudo chown -R "your account name" /dev/kvm.

In my case, I just had to install the proper drivers for my graphics card. I was using the Ubuntu's default, nouveau.

for people who are having this problem now in 2021, try to disable the vanguard anti cheat of valorant..he has been having some compatibility problems with android Studio.

As of Android Studio Arctic Fox patch 4, I resolved the issue by adding a new virtual device (for the simulator) which was for ARM architecture. Here are details with screenshots about the steps on ConfessionsOfAnAgileCoach.

Try this one. it might help.

AVD Manager

  1. your current running device's option
  2. Show On Disk // it will open some folders and files.
  3. Delete all .lock folders.
  4. Then run.

This worked for me.

Related