'Android Emulator doesn't show up

Here's my output for the command :

Android/Sdk/emulator/emulator @tablet

Output:

INFO | Android emulator version 31.2.10.0 (build_id 8420304) (CL:N/A) INFO | configAndStartRenderer: setting vsync to 60 hz WARNING | cannot add library /home/avincent/Android/Sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: failed INFO | added library /home/avincent/Android/Sdk/emulator/lib64/vulkan/libvulkan.so qemu-system-x86_64: -drive if=none,index=0,id=system,if=none,file=/home/avincent/Android/Sdk/system-images/android-28/google_apis/x86_64//system.img,read-only: Could not open '/home/avincent/Android/Sdk/system-images/android-28/google_apis/x86_64//system.img': Operation not permitted|

I tried following things:

  1. ubuntu-drivers autoinstall to get necessary drivers
  2. Tried changing file permission of the given directories
  3. Reinstalled Android Studio, along with Sdk, build-tools, sdkmanager ...

None of the above solved the issue

OS : Ubuntu 20 LTS , All the packages are updated to latest

It was working fine until there was some update issue and the packages were broken, I ran :

sudo apt --fix-broken install

then this error was showing up :

Unable to open '/boot/vmlinuz-5.x.x.x-generic.dpkg-new': Operation not permitted

I had to disable McAfee Antivirus to fix it.

After that the emulator stopped working.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source