Android项目开发时版本选择

来源:互联网 发布:网络黄金egd的最新消息 编辑:程序博客网 时间:2024/05/17 20:36

一、引言

没事就喜欢瞎扯,就算瞎扯也要好好记录问题,写点有用的东西。好了,言归正传。

二、Android软件开发时怎么选择版本

上图所示,新建项目时有三个地方要进行选择,这里说一下三个选项的区别:

箭头一所指的地方是最低兼容的android版本,现在一般是2.2吧。

箭头二所指的地方是指软件运行的目标版本,一般选择最新的SDK,不过也有区分,例如,如果是平板应用,一般选择3.x,如果是智能手环一般选择4.4w,其他一般都选最新的SDK版本。

箭头三所指的地方是指软件编译的版本,此处通常都是与箭头二一样。

三、Google是怎么建议的呢?

Google的建议:
In order to provide the best user experience on the latest devices, we recommend that you use the latest platform version as your build target. You'll still be able to run your app on older versions, but you must build against the latest version in order to use new features when running on devices with the latest version of Android.
To get started, download the latest Android version, plus the lowest version you plan to support (we recommend Android 2.2 for your lowest version).

0 0