AOSP x86_64 Emulator not visible in Android Studio

Or connect to it via network adb connect localhost:5555 - port number is one higher than emulated device serial (in default case emulator-5554). Then it is visible in Android studio and it works without issues.

solution that works for me (tried on two different machines):

$ cd aosp
$ repo init -u https://android.googlesource.com/platform/manifest -b android-10.0.0_r29
...
$ repo sync
...
$ . build/envsetup.sh
$ lunch sdk_phone_x86
$ m -j16

waiting for aosp to build

$ emulator &
$ adb devices
List of devices attached
emulator-5554   device

$ adb connect localhost:5555
connected to localhost:5555
$ adb devices
List of devices attached
emulator-5554   device
localhost:5555  device

enter image description here

start Android Studio (tested with 3.5.3 & 3.6.0)

In the devices list I see: "unknown Android SDK build for x86" with a little green dot next to it.

When I click on Run or Debug everything works

enter image description here