How do I get visual studio 2017 to see android 7 or 8?

When I load my project I see in the output window

    [I:]:                     Found Xamarin.Android
    [I:sdk]:                  Runtime path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\Android
    [I:sdk]:                  Framework path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0
    [I:sdk]:                    Key HKCU\SOFTWARE\Xamarin\VisualStudio\15.0_21ab2c5b\Android\AndroidSdkDirectory found:
        Path contains adb in \platform-tools (C:\Program Files (x86)\Android\android-sdk).
    [I:sdk]:                    Key HKCU\SOFTWARE\Xamarin\VisualStudio\15.0_21ab2c5b\Android\AndroidNdkDirectory found:
        Path contains ndk-stack in \. (C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r13b).
    [I:sdk]:                    Key HKCU\SOFTWARE\Xamarin\VisualStudio\15.0_21ab2c5b\Android\JavaSdkDirectory found:
        Path contains jarsigner.exe in \bin (C:\Program Files\Java\jdk1.8.0_112).
    [I:]:                     Found Android SDK. API levels: 19, 21, 22, 23, 24, 25
    [I:]:                     Tracking android devices started
    [D:]:                     Tracking avd started
    [D:]:                     avd watcher *.ini path: 'C:\Users\dpslocal\.android\avd'
    [D:]:                     avd watcher: got device list from avd with 4 devices
    [W:]:                     Adb connection refused
    [I:]:                     Starting Adb server (adb start-server)
    [I:]:                     Adb start-server operation completed
    [D:]:                     TrackDeviceTask got: 42009f5efe36c337 unauthorized
    [I:]:                     Got new device list from adb with 1 devices

Yet when I come to choose the device on which to debug I do not see the latest version,
only four choices all like android-23_x86_phone (Android 6.0 - API 23)

When I run Android SDK Manager I see that many versions up to 26 (8.0) are installed.

Can someone please advise how to see the latest version?

Best Answer


  • batmacibatmaci DEMember ✭✭✭✭

    @RofiqSetiawan does this work only with x86 image or also with 64bit one as well? I am asking this because although my installation looks like as below. I dont get any CPI/ABI option for 7.1.

    On the other hand, I think that these custom emulators are not Hyper-V based like VS Emulators but they are HAXM based, is that correct?

  • RofiqSetiawanRofiqSetiawan USMember ✭✭✭

    @batmaci Yes it works for both.

    And yes, Google's emulator is intel haxm based, not hyper-v.

  • batmacibatmaci DEMember ✭✭✭✭

    @RofiqiSetiawan How did you create emulator? I need to use latest Android SDK Tools as said in the this article but then I get message below in VS 2017 Preview

  • RofiqSetiawanRofiqSetiawan USMember ✭✭✭

    From Visual Studio > Tools > Android > Android Emulator Manager

    • Choose "Device Definitions" tab
    • Select your preferred device eg. "Nexus 9"
    • Click "Create AVD" and set your preferred "Target" (OS) and "CPU ABI"

    Note: Don't forget to install system image for your target OS via Android SDK Manager

Sign In or Register to comment.