Reputation:
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?
Upvotes: 4
Views: 17557
Reputation: 11
open your AVD folder from here Screenshort of the folder option (click) to seeand Delete the 'hardware-qemu.ini.lock' folder and 'your_Project_name.lock' file and close the Android studio, then re-launch the studio. It will work.
Upvotes: 0
Reputation: 1
Try this one. it might help.
AVD Manager
This worked for me.
Upvotes: 0
Reputation: 27
In my case, I just had to install the proper drivers for my graphics card. I was using the Ubuntu's default, nouveau.
Upvotes: 1
Reputation: 1091
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.
Upvotes: 0
Reputation: 21
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.
Upvotes: 0
Reputation: 535
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
.
Upvotes: 3