Minimum SDK、Target SDK、Compile SDK区分
16lz
2021-01-26
官方描述:
最好:
转自: http://blog.csdn.net/mr_too/article/details/37743603
http://chinagdg.org/2016/01/picking-your-compilesdkversion-minsdkversion-targetsdkversion/
- Minimum Required SDK is the lowest version of Android that your app supports, indicated using the API level. To support as many devices as possible, you should set this to the lowest version available that allows your app to provide its core feature set. If any feature of your app is possible only on newer versions of Android and it's not critical to the app's core feature set, you can enable the feature only when running on the versions that support it (as discussed in Supporting Different Platform Versions). Leave this set to the default value for this project.
- Target SDK indicates the highest version of Android (also using the API level) with which you have tested with your application.
As new versions of Android become available, you should test your app on the new version and update this value to match the latest API level in order to take advantage of new platform features.
- Compile With is the platform version against which you will compile your app. By default, this is set to the latest version of Android available in your SDK. (It should be Android 4.1 or greater; if you don't have such a version available, you must install one using the SDK Manager). You can still build your app to support older versions, but setting the build target to the latest version allows you to enable new features and optimize your app for a great user experience on the latest devices.
minSdkVersion <= targetSdkVersion <= compileSdkVersion
最好:
minSdkVersion (lowest possible) <= targetSdkVersion == compileSdkVersion (latest SDK)
用较低的 minSdkVersion 来覆盖最大的人群,用最新的 SDK 设置 target 和 compile 来获得最新特性。 转自: http://blog.csdn.net/mr_too/article/details/37743603
http://chinagdg.org/2016/01/picking-your-compilesdkversion-minsdkversion-targetsdkversion/
更多相关文章
- android获取app的版本信息
- activities切换动画
- android -------- Android(安卓)Studio调试运行时ADB not respon
- 关于使用Eclipse打包签名后APP出现不能正常运行
- CTS测试介绍
- 四大组件及Window简要运行时序图
- Android学习笔记一:Android开发环境搭建和第一个应用程序
- 【Android(安卓)adb】 adb环境变量配置
- Android(安卓)App的运行环境及Android系统架构概览