android sdk多个版本 编译用哪个

2025-03-30 14:16:34
推荐回答(2个)
回答1:

  永远只用最新的SDK版本,这是Google官方强烈建议的。开发者的app能运行的Android版本不是由SDK决定的,是由每一个项目的minSDK决定的。SDK都是向下兼容的。SDK在不断改进中,新的SDK会提供更强大开发工具,而且用4.0的SDK编译的2.1的apk的执行效率会比用2.1的SDK编译的更高。
  至于每个app应该用什么minSDK ,应该根据应用具体的API来,如果app没有用到1.6以上SDK新提供的API,那么用1.6会在提供相同体验下反而会比2.1兼容更多机型.

附谷歌原版建议:
  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).

回答2:

这样可以体现技术多么 niubility 。

其实最主要的是 Windows 下面编译一个 android

平台可以要了很多人的命。Linux 下面不过是几条命令而已。而且自己编译最大的好处是可以直接拿到最新的 android源代码编译出最新的 android 环境。必要时还可...