Android SDK instance error while opening Android device manager in Visual Studio

Karthik Sankaran 101 Reputation points
2020-09-02T10:01:04.85+00:00

22143-error.png22211-androidoptions.png22138-microsoftrepositoryplatforms.png

I have installed Visual Studio Enterprise 2019 version 16.1.3 with mobile development features. I am using AMD processor with Windows 10 with Virtualization Technology enabled in BIOS. Have also enabled hyper-v and Windows hypervisor platform. I have attached here all the images of my installation settings and error. Eagerly looking out for solutions and ideas.

22144-microsoftrepositorytools.png22212-microsoftrepositorytools1.png22183-microsoftrepositorytools2.png

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,604 questions
0 comments No comments
{count} votes

Accepted answer
  1. Karthik Sankaran 101 Reputation points
    2020-09-16T07:57:38.307+00:00

    The android device manager worked by running the Visual Studio in administrator mode and by setting the path for ANDROID_HOME and ANDROID_SDK_ROOT as the default SDK path( C:\Program File (x86)\Android\android-sdk ).

    1 person found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,266 Reputation points Microsoft Vendor
    2020-09-03T05:03:24.293+00:00

    Hello KarthikSankaran,

    Thank you for sharing images with me, I noticed that you set the Android SDK Location as C:\Users\XXX\AppData\Local\Android\Sdk. This isn’t the default location of Android SDK, of course, you can customize it but please note, there are some incompatibilities with the Android SDK set by Visual Studio 2019 and Android Studio.

    Not sure if you have installed Android Studio and set the Android SDK under this directory: C:\Users\..... I recommend you go to this directory: C:\Program Files (x86)\Android\android-sdk and copy the related folders and files(Android SDK) from the customized directory to this default directory (or you can change to another customized directory) then set the Android SDK Location to C:\Program Files (x86)\Android\android-sdk from Tools > Options... > Xamarin > Android Settings and try to open Android device manager again.

    Feel free to let me know the result.

    Sincerely,
    Tianyu

    1 person found this answer helpful.

  2. Sathyapriya X 0 Reputation points
    2023-06-08T04:13:19.9533333+00:00

    Even i m facing the issue in Android SDK.

    PFB:

    User's image

    Pls help.

    Thanks in advance

    0 comments No comments

  3. gizaha‏ 1 Reputation point
    2023-06-11T22:53:56.6333333+00:00

    I realised that I had this problem and it cost me 2 days to solve it.

    I went to

    C:\Users\user\AppData\Local\Xamarin\AndroidDevices.exe_Url_vad3ja0bqgjyvgyibkftpvyz0n12l5ed\17.6.0.76

    and deleted the user.config file (it was empty), then i opened android device manager, it opened ok and it created a new user.config file.

    What happened in the first place:

    I try to start android device manager, bsod and then android device manager didn't start, instead it returned in console output:

    "Xamarin - 17.6.0.251-d17-6+318364c

    No Android SDK instance matching the 'C:\Program Files (x86)\Android\android-sdk' path"

    Countless tries of repair/reinstalling xamarin etc etc didn't work

    0 comments No comments