Reputation: 1565
I am using Visual Studio 2022 to create a Xamarin.Forms application based on Android. Now I have the problem that my connected Android device is not recognized in Visual Studio. Running "adb devices" shows the connected device. When running Android Studio I can also see the device listed - only in Visual Studio it is not shown in the list. In addition, also the Windows Device manager shows the the device in the portable devices category.
Any idea what's wrong here?
Upvotes: 6
Views: 8595
Reputation: 77
Running the "adb devices" command in the abd command prompt worked for me. VS 2022 was not showing any devices including the emulated ones untill I ran that command. Thanks. This is a good fix for an issue that has plagued VS for years.
Upvotes: 2
Reputation: 1686
Search for Visual Studio Installer from your Start menu.
Select more->repair. Use this operation to try to repair.
You can also try other Android devices to check, if it still doesn't work, please check your Android SDK.
Upvotes: 0