After upgrading my android studio - I tried creating an emulator but get this error when trying to start the AVD :
Emulator: statvfs('/home/nompumelelo/.android/avd/Pixel_2_API_24.avd/snapshots/default_boot/ram.img') failed:
No such file or directory
I have restarted the android studio, recreated the AVD - but still no success.
The error below is what shows on my terminal.
All applications and files that you have deployed to the Android emulator are stored in a file named userdata-qemu. img located in the C:\Users\<username>\. android\avd\<avd_name>. avd folder.
By default, the android tool creates the AVD directory inside ~/. android/avd/ (on Linux/Mac), C:\Documents and Settings\<user>\. android\ on Windows XP, and C:\Users\<user>\. android\ on Windows 7 and Vista.
To copy a file from the connected emulator/device onto the computer, use the following command: adb.exe pull /data/app/<filename> c:\ NOTE When using the adb.exe utility to pull or push files from or into the emulator, ensure that only one AVD is running.
I can confirm that the Emulator 29.2.1 Stable fixes this bug.
An excerpt from the link above:
Fixed crash on startup on Linux Wayland systems. This was because XkbGetKeyboard was used to query the host system's keyboard state. It seems usage of XkbGetKeyboard is not advisable on Linux and perhaps in general: https://github.com/glfw/glfw/issues/389
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With