I have installed Android Studio 2021.2.1 on Linux Mint 20.
Project: "Empty Activity" with minimum SDK: API 19, language: Kotlin.
Android virtual device: "Pixel 4a API 31" with system image "S".
No more changes to the project, just the "hello world".
When I try to run the project and my laptop is connected to wifi, it works just fine. But when I try to run the project (or just the emulator) with wifi turned off, the emulator doesn't start. It's stuck at "waiting for all devices to come online" phase, and I see in the Device Manager "No emulators are currently running. To launch an emulator, use the Device manager or run your app while targeting a virtual device".
After several minutes, I see a notification from the Device Manager "Timed out after 300seconds waiting for emulator to come online."
So the emulator didn't start, probably. But when I try to launch the AVD again, I get an error saying "AVD Pixel_4a_API_31 is already running."
Is it supposed to be like this? That you need an internet connection to launch the AVD?
Also, if I launch the AVD with the internet, and then turn the internet off, the AVD continues to work without any errors.