Search Issue Tracker
Fixed
Fixed in 2021.3.37f1, 2022.3.23f1, 2023.2.16f1, 2023.3.X, 7000.0.0a1
Votes
1
Found in
2021.3.32f1
2022.3.12f1
2023.1.20f1
2023.2.0f1
2023.3.0a16
Issue ID
UUM-56519
Regression
No
[Android] Editor terminates the ADB connections when an emulator is running in Android Studio
Reproduction steps:
1. Open the attached project "PROJECT_PATH"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Open “PROJECT_PATH2“ in Android Studio
4. In Android Studio, select any emulator and press the “Run” Button
5. In Editor, open the Preferences window (Edit > Preferences)
6. Select the External Tools tab
7. Make sure all Android modules are installed with Unity
8. Change the Android SDK Module to use Android Studio’s SDK
9. Change the Android SDK Module back to SDK installed with Unity
10. Open the Build Settings window (File > Build Settings)
11. Click the Refresh Button next to the “Run Device” option
12. Repeat steps 4 - 11 for about 5 times
Expected result: The Editor does not terminate ADB connections
Actual result: The message “Multiple ADB server instances found, the following ADB server instance has been terminated due to being run from another SDK“ appears in the Console window
Reproducible with: 2021.3.32f1, 2022.3.12f1, 2023.2.0f1, 2023.3.0a16
Reproducible on: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Note:
- Forum thread of the same issue: https://forum.unity.com/threads/unity-build-keeps-knocking-out-existing-adb-instances-then-reports-no-device-connected.1340960/
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Specular lighting visible in a camera with Path Tracing when Preserve specular lighting is disabled in observed material
- Cinemachine package throws CS1061 errors in the Console when installed in a project that has HDRP and URP installed
- Editor.log file size grows rapidly when a scene exceeds the "Maximum Shadow on Screen" limit setting in the HDRP Asset
- Player build freezes after calling Application.Quit() when the scripting backend is set to IL2CPP
- Texture is not applied on a Custom Render Texture when a Cubemap is selected as the texture
Resolution Note (fix version 2023.3):
There will be a new option Preferences->External Tools->Kill External ADB instances.