Visual Studio not showing installed Android api levels

后端 未结 2 1444
情话喂你
情话喂你 2020-12-21 05:18

I am developing an Android app in Visual Studio. In the Android SDK manager, all API\'s from API level 23 (Android 6.0) to API level 25 (Android 7.1) are installed.

相关标签:
2条回答
  • 2020-12-21 05:41

    In Visual Studio 2017 preview there is an improved Google Android emulation support with a new Android emulator that's built into Visual Studio (this supercedes the Visual Studio Emulator for Android):

    I checked it this morning and it had Android emulators up to API 27 including Oreo.

    However, I did try to trigger API 28 P-Type even switching the SDK Manager from the Microsoft repository to the Google repository but it still didn't show up, but, at least you got everything you need up to API 27.

    References:

    • https://www.visualstudio.com/vs/preview/
    • https://blog.xamarin.com/3-reasons-to-try-visual-studio-2017-version-15-4-previews/
    0 讨论(0)
  • 2020-12-21 05:43

    Is your Xamarin installation up to date? I suspect that your version of Xamarin.Android is 6.x which means that you won't be able to target Android 7.0 or 7.1 even if they are installed through the SDK manager. You can check the version from Help > About Microsoft Visual Studio.

    For example, my version is 7.1.0.19 and I'm able to target Androd 7.1 just fine.

    To check for updates, you should open Tools > Options > Xamarin > Other and click Check now.


    Update for Visual Studio 2017:

    If you're using Visual Studio 2017 or newer, Xamarin updates are delivered as part of Visual Studio updates. To manually check for updates, go to Tools > Extensions and Updates... In the left hand menu, open Updates and select Product Updates. If there are updates available, they will be shown on this list.

    0 讨论(0)
提交回复
热议问题