简体   繁体   English

什么是最低SDK,我应该选择哪一个

[英]What is the Minimum SDK and which one should I choose

First off, I know very little about android development, I am just getting started. 首先,我对android开发了解甚少,我才刚刚起步。

What is the Minimum SDK choice that you get when creating a project in android studio? 在android studio中创建项目时,获得的最低SDK选择是什么? Is there a downside to using an older one? 使用较旧版本有不利之处吗? And if I follow a tutorial is it essential that I use the same one so I can follow along? 而且,如果我遵循某个教程,那么使用同一教程是否必不可少,以便我可以继续学习?

Thanks. 谢谢。

What is the Minimum SDK choice that you get when creating a project in android studio? 在android studio中创建项目时,获得的最低SDK选择是什么?

That is the oldest version of Android that you are willing to support. 那是您愿意支持的最旧的Android版本。 It is expressed in terms of an API level. 它以API级别表示。 You can see common API levels in the Android dashboards , and the documentation will point out in many places where things need such-and-so an API level to work. 您可以在Android仪表板中看到常见的API级别,并且该文档将指出在许多需要此类API级别才能工作的地方。

Is there a downside to using an older one? 使用较旧版本有不利之处吗?

Less stuff in Android will be supported. 将支持更少的Android设备。 In your case, since you are following a tutorial, choosing a lower minSdkVersion may cause some more complaints from your IDE, saying that such-and-so is not available on your chosen minSdkVersion . 在您的情况下,由于您正在按照教程进行操作,因此选择较低的minSdkVersion可能会引起IDE的更多投诉,并指出您所选择的minSdkVersion不支持某某方法。

And if I follow a tutorial is it essential that I use the same one so I can follow along? 而且,如果我遵循某个教程,那么使用同一教程是否必不可少,以便我可以继续学习?

IMHO, that depends on your overall programming experience. 恕我直言,这取决于您的整体编程经验。 If you are a veteran developer, and you want to play around with a lower minSdkVersion , go ahead, bearing in mind that the tutorial code might not run on that API level. 如果您是经验丰富的开发人员,并且想使用一个较低的minSdkVersion ,请继续,请记住教程代码可能无法在该API级别上运行。 If you are fairly new to programming overall, stick with what the tutorial tells you to do. 如果您不熟悉整体编程,请遵循本教程告诉您的操作。 If your concern is that your test device is not new enough for the tutorial, find a different tutorial, find a different device, or use the emulator instead of a device for testing this tutorial. 如果您担心测试设备对于本教程而言还不够新,请查找其他教程,查找其他设备,或者使用仿真器代替用于测试本教程的设备。

android:minSdkVersion

An integer designating the minimum API Level required for the application to run. 一个整数,指定运行应用程序所需的最低API级别。 The Android system will prevent the user from installing the application if the system's API Level is lower than the value specified in this attribute. 如果系统的API级别低于此属性中指定的值,则Android系统将阻止用户安装应用程序。 You should always declare this attribute. 您应该始终声明此属性。

You can use your own min SDK but be careful about features you use. 您可以使用自己的min SDK,但要小心使用的功能。 infact, minSDK with great number have more features. 实际上,数量众多的minSDK具有更多功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我应该选择什么样的最低SDK版本? (如2018年11月) - What is the minimum SDK version should I choose? (as in Nov 2018) 我应该选择的最低 SDK 版本是多少? (如 2019 年 7 月),为什么? - What is the minimum SDK version should I choose? (as in July 2019) and why? 当我在 Android Studio 中创建一个新项目时,我应该根据项目类型选择哪个 API 级别作为最低 SDK? - When I create a new project in Android Studio, which API level should I choose according to project type as the minimum SDK? Android SDK Manager-我应该选择安装哪个软件包? - Android SDK Manager - Which Package Should I Choose to Install? 开始为 Android 开发,我应该选择安装哪些 SDK? - Starting to develop for Android, what SDK(s) should i choose to install? Android密钥库类型我应该选择哪一个? - Android Keystore Type which one should I choose? 拆分后APK我应该选择哪一个? - after split APK which one should I choose? 选择Android SDK Manager进行离子开发的最低软件包是什么? - What are the minimum packages to choose for Android SDK manager for ionic development? Android:使用兼容软件包时,应该选择哪个版本的SDK? - Android: When compatibility package is used, what version of SDK should I choose? 我应该选择哪个 Recyclerview 或 ScrollView? - Which Recyclerview or ScrollView should I choose?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM