Minimum SDK、Target SDK、Compile SDK作用

官方描述:
  • 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.


1、Minimum Required SDK  运行时需要的最小SDK,如果指定API-11,则在API-10版本SDK的设备上根本不能安装成功。

2、Target SDK 目标SDK,运行时的最高的SDK版本,每次SDK版本更新之后要在新版本上测试应用,修改为最近的SDK。

2、compile with 编译的SDK版本,个人理解,对于编译版本以下的SDK版本,有些新特性不支持,使用support libs进行向后兼容,对于大于compile版本的SDK,安卓本身是向前兼容的(兼容更高的版本)所以不需担心。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值