I used Ubuntu 18.04, my Android Studio is 3.4, when I run app on a real phone, it is OK, when I used a virtual device, the error report was:
2:45 Emulator: statvfs('/home/zf/.android/avd/Pixel_3_API_22.avd/snapshots/default_boot/ram.img') failed: No such file or directory
2:45 Gradle build finished in 6 s 850 ms
2:46 ADB rejected shell command (getprop): closed
2:46 Emulator: Process finished with exit code 0
3:17 Emulator: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
It seems that, the key reason is "No such file or directory", what does that mean and how can I fix it?
I fixed the error like
by changing the group owner of
ram.img
tolibvirt
:And changing the permissions to allow both read and write:
This usually goes together with this error:
Which in my case got fixed with this:
See How to fix the following logcat error message in android studio running on linux