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

查看:32
本文介绍了如何从 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天全站免登陆