HamzaKhalid273
HamzaKhalid273

Reputation: 435

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

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.

Upvotes: 17

Views: 34973

Answers (8)

Jediwus
Jediwus

Reputation: 1

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

Upvotes: 0

Jeffrey Sy
Jeffrey Sy

Reputation: 1

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

Upvotes: 0

simonarame
simonarame

Reputation: 375

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.

Upvotes: 5

Eden Schwartz
Eden Schwartz

Reputation: 1

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

Upvotes: 0

NilsAndreas
NilsAndreas

Reputation: 211

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.

Upvotes: 1

Özer Bayraktar
Özer Bayraktar

Reputation: 61

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

Upvotes: 4

normin48
normin48

Reputation: 15

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

Upvotes: 0

afazolo
afazolo

Reputation: 382

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.

Upvotes: 1

Related Questions