简体   繁体   English

android:可能 select 目标 sdk **创建新项目时**?

[英]android: possible to select target sdk **when creating new project**?

When creating new project you get "select project template" and then "configure your project" windows.创建新项目时,您将获得“选择项目模板”,然后“配置您的项目”windows。 On the second window, there's an option to set minimum SDK , but no target SDK for compilation, which is automatically set to a higher version.在第二个 window 上,有一个选项可以设置最小 SDK ,但没有目标 SDK 用于编译,它会自动设置为更高版本。 I can change it later, but this creates various problems (initial activity has features that rely on later versions, etc).我可以稍后更改它,但这会产生各种问题(初始活动具有依赖于更高版本的功能等)。 Is there any way to set the target SDK during project creation ??有没有办法在项目创建期间设置目标 SDK ?

The answer is No .答案是否定的。 You just can't.你就是不能。 And change it inside the gradle config is the only way.在 gradle 配置中更改它是唯一的方法。 Maybe there is reason for Android to configure default target version. Android 可能有理由配置默认目标版本。

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

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