2

I am forking this app and trying to make some changes to it and run it. I've managed to do so on my laptop but it's painfully slow, so I am trying to set up the whole thing on my PC but I get the following error:

Failed to start monitoring emulator-5554

the emulator started and it showed the Google logo but then it closed.

This is happening on a device called: Pixel 3a API 30 x86.

I have another device (Pixel XL API 29) set up but there the emulator doesn't even show up and there are no errors in Android Studio.

The only resources I found matching my question is this and I've tried restarting my computer several times but it didn't work. And this one but my android emulator seems to be the latest version.

All this is happening on Ubuntu 18.04.

Android Studio version is 4.1.1.

Any ideas appreciated!

EDIT 1:

Currently, I am trying to run the emulator from the command line. At first, it was complaining of another instance already running even after restarting my PC. So, I found some multinstance.lock files and deleted them. Then, it complained about permissions in the particular AVD folder so I did chmod -R 777 the whole avd folder. Now, it complains that it cannot create a vulkan instance or something similar and that it doesn't have access to a particular file in the user's home folder, I couldn't copy the whole output cuz my PC got stuck and I had to restart it. This happened several times.

7
  • 1
    Start the emulator from command-line and check if there are any error messages.
    – Robert
    Commented Jan 6, 2021 at 14:26
  • I get the following error: ERROR: Another emulator instance is running. Please close it or run all emulators with -read-only flag. - even after restarting my computer. Very weird. Commented Jan 8, 2021 at 11:51
  • Does this answer your question: Android Studio : emulator is already running
    – Robert
    Commented Jan 8, 2021 at 11:54
  • I saw that one but I couldn't find any .lock files in the emulator directory. Commented Jan 8, 2021 at 12:32
  • AVD uses lock directories not files. They should be located in ~/.android/avd/<avdname>.avd/.
    – Robert
    Commented Jan 8, 2021 at 12:52

0

You must log in to answer this question.

Browse other questions tagged .