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
7000.0.0a1
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/|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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- [Linux] AutoLocale log is logged when opening a project
Resolution Note (fix version 2023.3):
There will be a new option Preferences->External Tools->Kill External ADB instances.