If you are developing an android application and when you run the application and its shows your android app is installed is successful in a virtual device.
Boom but where is the emulator device, Pop-up show app is installed successfully.
When you check emulator is running or not? Then android studio screen will show the error “No emulators are currently running. To launch an emulator, use the AVD Manager or run your app while targeting a virtual device.” despite the android emulator is running.
This error sometimes occurs when the emulator is not closed forcefully. To avoid this please power off the emulator properly.
You can fix this issue with the below guide and it will work on the Linux platform only.
How to fix the issue?
We will guide you step by step just you need to follow.
Step 1. First, go to the Tool Menu, In the tool, menu select AVD Manager.
Step 2. Android Virtual Manager screen will be the next in this screen click on play button which will be below Actions tab.
Step .3 Once you click on the play button a pop-up will show up and it will show you to delete all the lock files in the specified directory.
A lock file is used to prevent applications to crash from concurrent usage.
Step 4. Open the terminal and pass the command emulator device name will be different on your system just check once before executing.
$ rm -rf /home/shen/.android/avd/Pixel_2_API_29.avd/*.lock
Or else you can follow the directory name from the pop-up dialog.
Step 5. Now try to install and run the application this time emulator will show up.
This was the simple step that you can follow to fix the android emulator issue in Linux based system.
Read this: How to show emulator inside the android studio?
A man with a tech effusive who has explored some of the amazing technology stuff and is exploring more. While moving towards, I had a chance to work on Android development, Linux, AWS, and DevOps with several open-source tools.