Android Devices Detected for Xamarin.Android but not .NET for Android

Nathan Sokalski 4,111 Reputation points
2025-03-24T16:20:24.7933333+00:00

I have several Solutions, Xamarin.Android & .NET for Android. When I open the Xamarin.Android Solution Visual Studio 2022 Community 17.13.4 detects all of my physical Android devices, but they are not detected by Visual Studio when opening the .NET for Android Solution. This is on the same machine without unplugging, restarting, or changing any settings. Even when running multiple instances of Visual Studio they are only detected by the instance in which I open the Xamarin.Android Solution (regardless of which one I open first). This applies to both physical Android devices that are connected to my machine. Is there some kind of Solution or Project property in the .NET for Android that is causing this?

Developer technologies Visual Studio Debugging
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2025-03-25T08:13:59.5133333+00:00

    Hello @Nathan Sokalski ,

    Please try to open Android Adb Command Prompt(Tools > Android > Android Adb Command Prompt....) and run adb devices command, see if the devices list there.

    User's image

    If no devices are listed there, try to run adb kill-server and adb start-server command. See if it works.

    I tested on my side with 17.13.4 but failed to reproduce this issue, so if the issue persists, could you please share us the complete steps you performed and let us know the components/tools about Android, SDK, Xamarin, MAUI that you have installed on your machine?

    Besides, is it possible to test on another machine or try the third, fourth different Android devices? I doubt that the devices have been connected, it’s just VS didn’t refresh it. Will rebooting a couple of times works?

    Best regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Andy Pennell [MSFT] 11 Reputation points
    2025-05-22T21:48:57.88+00:00

    I had this exact problem on my Desktop, but my laptop was fine. I compared the two, and once I uninstalled Android SDK Platform 35, it worked again. (This left the newest one as SDK Platform 34).

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.