emulator: ERROR: A snapshot operation for 'Nex

2019-05-17 07:48发布

emulator: ERROR: A snapshot operation for 'Nexus_4_API_27' is pending and timeout has expired. Exiting...

I am getting this error when I am trying to open emulator from command-line with this bellow command.

anjan@anjan-HP-Laptop-15-bs0xx:~/Android/Sdk/emulator$ ./emulator -avd Nexus_4_API_27

How to solve this problem?

3条回答
趁早两清
2楼-- · 2019-05-17 08:26

I had this error in ubuntu and the fix was to change the owner of my $HOME/.android folder into my current user. ie.

sudo chown -R [username] $HOME/.android
查看更多
男人必须洒脱
3楼-- · 2019-05-17 08:34

If you have android studio installed (Obviously) just open the AVD Manager, select the device and choose 'Stop' by using the right click. Then the device will be released.

查看更多
甜甜的少女心
4楼-- · 2019-05-17 08:43

It is caused be the lock file generated by the boot which reside in the folder = .android/avd/{yourDeviceName}.

we can delete by using sudo rm snapshot.lock.lock command.

enter image description here

Then cold booting the device again ,solves the issue.

查看更多
登录 后发表回答