[英]Different Configurations for different “Build Variants”
I have four different build variants. 我有四个不同的构建变体。 However I find it irritating that I need to go to Project > Build Variant each time I need to build another variant.
但是,我感到烦恼的是,每次需要构建另一个变体时,都需要转到“项目”>“构建变体”。 Is it possible to link a Configuration directly to a build variant?
是否可以将配置直接链接到构建变体? Similar to how XCode can be used to build different version of an app using "Schemes".
类似于如何使用XCode使用“方案”来构建应用程序的不同版本。
From the Configuration settings there are only a link to the module and not the modules build varaint. 在“配置”设置中,只有指向该模块的链接,而没有模块构建变量。
I'm not familiar with XCode but you can easily change the variant you are building from "Build Variants". 我对XCode不熟悉,但是您可以轻松地从“构建变量”中更改要构建的变量。 This can be opened in 1 click from the bottom left corner of the IDE, see attached image.
可以从IDE左下角单击1来打开它,请参见附件图像。 If it doesn't show there for you clicking the icon at the bottom left will provide it.
如果没有为您显示,请单击左下方的图标将其提供。
Alternatively, you can set a shortcut for the view by going to File->Settings->Keymap and search for "Build Variants". 另外,您可以通过转到文件->设置->键盘映射并搜索“构建变体”来设置视图的快捷方式。 This path is ok for Windows and Linux OSes but slightly different on Mac OS X which I believe you are using.
对于Windows和Linux操作系统,此路径是可以的,但在我相信您正在使用的Mac OS X上,该路径略有不同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.