简体   繁体   English

我可以在Android Studio中使用过时版本的SDK构建工具吗?

[英]Can I use obsolete version of SDK build tools in android studio?

I have a phone with 4.2.2(Jellybean) version, I want to create a application on that version but that version is obsolete. 我的手机具有4.2.2(Jellybean)版本,我想在该版本上创建一个应用程序,但是该版本已过时。 Can I still build on that version on Android Studio? 我仍可以在Android Studio的该版本上构建吗?

You can build apps for any of the version. 您可以为任何版本构建应用程序。 SDK version for Jellybean is 17. Just setup the minSdkVersion in build.gradle as 17 (or lower if you wish to use it with even earlier versions of android). Jellybean的 SDK版本为17。只需minSdkVersion build.gradleminSdkVersion设置为17(如果您希望与更早​​的android版本一起使用,则将其设置为17)。

You'll also get this option to choose the minimum sdk version from the new project wizard itself while creating one. 您还将获得此选项,以在创建新项目向导时从新项目向导本身中选择最低sdk版本。

In short, yes you can make it. 简而言之,是的,您可以做到。 Also, You may need to download the relevant API if you want to use the emulator. 另外,如果要使用仿真器,则可能需要下载相关的API。

Per this blog post , you should always compile with the latest SDK (and the same applies to build tools, gradle version, etc). 根据此博客文章 ,您应该始终使用最新的SDK进行编译(构建工具,gradle版本等同样适用)。 What you compile with is independent from the minimum and target SDK version you use. 编译内容与所使用的最低和目标SDK版本无关。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM