如何创建一个发布Android库包(AAR)在Android的一室公寓(不调试) [英] How to create a release android library package (aar) in Android Studio (not debug)

查看:182
本文介绍了如何创建一个发布Android库包(AAR)在Android的一室公寓(不调试)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立了我的Andr​​oid库包(AAR)和构建的结果是产生 .. \程序\编译\输出\ AAR文件夹中。在此文件夹中的文件名为APP-debug.aar,所以我想这已建成调试模式,所以我想知道如何genereate建的发行,也就是APP-release.aar。我怎样才能做到这一点?此外,是否有可能genereate构建与其他自定义名称,例如myCustomAppName-release.aar,而不是应用程序 - release.aar。

I have built my android library package (aar) and the result of build is created in "..\app\build\outputs\aar" folder. The file within this folder is called "app-debug.aar" so I guess it has been built in debug mode so I would like to know how to genereate the release built, that is, "app-release.aar". How can I do this? Also, is it possible to genereate the build with another custom name, for example, "myCustomAppName-release.aar" instead of "app-release.aar".

推荐答案

在安卓1.2+工作室(当前稳定版本是1.4.1和布局没有改变)有一个完整的摇篮菜单,列出所有可用的摇篮任务。

In Android Studio 1.2+ ( current stable version is 1.4.1 and the layout has not changed ) there is a complete gradle menu that lists all of the available gradle tasks.

我发现在右侧启用默认选项IDE的菜单。

I found this menu on the right side of the IDE with default options enabled.

右键单击所需的任务,然后单击运行。

Right click the task you want and click "Run".

这篇关于如何创建一个发布Android库包(AAR)在Android的一室公寓(不调试)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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