AVD shows error Error while waiting for device: Illegal char <*> at index 0: *.lock
Asked Answered
E

8

16

Pixel 2 Api 30 AVD of my android project is not working. It is showing me this error: enter image description here

Is there anything you can do for me? Please help.

Eisenach answered 6/10, 2022 at 16:44 Comment(3)
Try removing .lock files for your emulator, https://mcmap.net/q/181353/-android-studio-emulator-is-already-runningDuenas
Please, check this out geeksforgeeks.org/…Sciomancy
Now, we can use Windows PowerToys's File Locksmith to view which application locks the file in question so that we can terminate the app learn.microsoft.com/en-us/windows/powertoys/file-locksmithOndrea
J
5

I had this error

enter image description here

and solved it by going to Device Manager > Edit this AVD (pencil icon) > Show Advanced Settings > Emulated Performance > Boot Options : select "Cold Boot"

Then I restarted Android Studio and did not get the error again.

Jarboe answered 9/2, 2023 at 15:31 Comment(0)
A
4

Device Manager->options -> show on disk -> (hardware-qemu.ini.lock) delete this file, restart your ide and run your app. this worked for me

Aberrant answered 22/12, 2022 at 11:57 Comment(3)
Can't delete, the file is used by another process.Exposure
it's a directoryValery
It is a directory, but deleting the file inside (named pid) seems to have fixed the issue for me (I presume deleting the whole directory would also work, as it was the only file inside.Blackheart
S
1

If you’re working on API Level 30 and your emulator version is 30.1.2 then updating it to 30.1.5 would perhaps resolve your issue. Updating Emulator is a breeze, simply: Android Studio -> Go to preferences -> Android SDK -> Then find and update the Android Emulator from the list.

Sciomancy answered 18/10, 2022 at 14:42 Comment(0)
G
1

I get this error sometimes, and what usually helps me is to choose "Cold boot now" on the vertical dots-menu of this virtual device.

Gabriello answered 9/1, 2023 at 13:14 Comment(0)
T
0

The option of whether to ALLOW USB debugging will pop up on it when the emulator starts up, you need to click "Allow". By the way, sometimes the popover will disappear quickly and automatically, you must be quick in sight and quick in hand.

enter image description here

Tilton answered 18/10, 2022 at 6:55 Comment(1)
!!!! I met the flickering window problem many times...... This saved me: youtube_com/watch?v=JkBhlqjsNbIRhaetic
F
0

You can increase AVD level above 11. If you use 12 or more you will not get this error.

Funnelform answered 14/12, 2022 at 19:57 Comment(1)
I'm on API 31. on fresh install of Android SDK and I get this error :(Somnus
P
0

Just create new emulator device by: Device Manager > Create Device

Perfunctory answered 7/2, 2023 at 12:27 Comment(0)
I
0

I was able to resolve this by going into device manager -> 3 dots on emulator I was using -> Wipe Data -> Cold Boot Now

Ifni answered 3/4, 2023 at 17:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.