简体   繁体   中英

Do I need all of the Android SDKs and how should I install them?

When targeting a Xamarin.Forms App (PCL) from a certain Android version and up - does that mean that I need the SDKs for all of the levels from that version up, or is it enough to have the highest level and it will include the rest? Eg If I'm targeting 6.0 and up, is it enough to have SDK 26, or do I need also 23, 24, and 25? According to this answer one is enough. but according to Xamarin I need all of them.

And if I do need to install all of them, should this be done from Visual Studio installer, or from the Android SDK Manager inside Visual Studio? Is there a difference between them? (I'm using VS2017 latest version 15.5.2)

You just need the one you're targeting, with the targetSDK parameter of your manifest. Note that target and minimum are different things- its the target you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM