Emulator: Secondary displays cannot be added
MarkoVirtualizer opened this issue · 1 comments
Behaviour
Circumstances: Emulator is running OK on a PC and functions as a normal, fully interactive Android phone.
Actions: Using the GUI menu: Extended Controls (click the bottom "..." icon on the emulator's sidebar) -- Displays -- Add secondary display, does not work. Although the grey schematic simulation on the right side shows the preview of the newly defined additional display(s), clicking the APPLY CHANGES button gives no result in the emulator window (no actual second display is added), and no error message is displayed either.
Steps to reproduce this issue
- Install the "Android Studio™ portable" normally, i.e. using the official portable installer linked from the Portapps page ([https://portapps.io/app/android-studio-portable]).
- Start the program using the android-studio-portable.exe launcher in the main installation directory, and set up everything you need, including virtual devices.
- On the "Welcome to Android Studio" screen, look down and click "Configure", select "AVD Manager".
- This opens a new window "Android Virtual Device Manager", where you can start any existing device of your choice (which opens in a new "Android Emulator" window).
- On the sidebar (right to the running virtual phone), click "..." to open the "Extended Controls" window, where you go to Displays -- Add secondary display. Click APPLY CHANGES.
- You will see absolutely no response whatsoever.
- There is a message "Emulator: emulator: ERROR: MultiDisplay.cpp:110: Adb interface unavailable" on the "Welcome to Android Studio" screen, bottom part, the "Events" drop-down menu. This message may or may not be related to the problem described above (there are no other messages in that list, and I have no idea whether there is a causative relationship between the message and software malfunction).
Expected behaviour
In regular local (i.e., non-portable) installations, the above procedure expands the emulator window and adds a new display, predefined or custom, just next to the phone's Home screen. This can be repeated up to 3 times, resulting in 4 displays neatly arranged next to each other in a single row (the Home screen, and the 3 secondary displays). Each additional display can be individually deleted or freely resized / reconfigured. All changes are remembered and when you stop or restart the Android Studio, the modified virtual device opens with the added displays and with the respective apps open on them running OK.
Actual behaviour
Nothing happens - no secondary displays are created - the button APPLY CHANGES is not reactive. This is a critical failure that prevents users from emulating dual-screen devices (e.g., Microsoft) and hampers testing apps in 2-, 3-, or 4-display settings.
Configuration
App release / arch (ex. 1.0.0-2 win64) :
Android Studio portable v.4.0.14
android-studio-portable-win64-4.0.1-14-setup.exe (installer)
android-studio-portable.exe v.2.4.4.0 (portable launcher)
studio64.exe v.4.0.0.0 (64-bit executable)
studio.exe v.4.0.0.0 (32-bit executable)
Operating system (ex. Windows 10 Pro 64 bits) / Winver screenshot :
Windows 10 Home, v.1909, 64-bit
OS Build: 18363.959
Logs
Join the log file log\[appname]-portable.log
to this issue. File "android-studio-portable.log" is attached.
android-studio-portable.log