如何从Android Studio构建产品风味? [英] How to build product flavors from Android Studio?

查看:85
本文介绍了如何从Android Studio构建产品风味?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在build.gradle中定义了一些产品口味.我能够使用gradlew成功构建它们.

I have defined some product flavors in my build.gradle. I am able to successfully build them using gradlew.

我不知道如何从Android Studio IDE中做到这一点.

I can't figure out how I do so from the Android Studio IDE.

(我的项目最初是在Eclipse中完成的,然后我已迁移到Android Studio)

(My project was initially done in Eclipse then I've migrated to the Android Studio)

推荐答案

Build Variants沿工作区左边缘的底部显示为垂直按钮.如果看不见,请单击左下角的小矩形图标.

Build Variants appears as a vertical button along the bottom of the left edge of the workspace. If it's not visible, click the little rectangle icon on the lower left corner.

这篇关于如何从Android Studio构建产品风味?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆