简体   繁体   English

使用Android Studio 3.0在输出文件夹中不再创建AAR库

[英]AAR libs no longer created in the output folder with Android Studio 3.0

I have some lib modules in my Android project. 我的Android项目中有一些lib模块。 Before updating Android Studio to the new 3.0 version and so the Gradle plugin to the 3.0.0 one, I was able to find the AAR file of my libs into the builder/output folder after building the project. 在将Android Studio更新到新的3.0版本并将Gradle插件更新到3.0.0之前,我能够在构建项目后找到我的库的AAR文件到builder / output文件夹中。

It seems that the AAR libs are no longer produced in this new version. 似乎在这个新版本中不再生成AAR库。

Is there any alternative way to get them again? 有没有其他方法可以再次获得它们?

更新:自gradle 3.2.0起,你需要使用bundleReleaseAar而不是bundleRelease ,正如所指出的那样为什么android gradle maven发布工件bundleRelease not found

In my case, where I am building with Jenkins and I want to have both the apk and aar in my artifacts I could achieve this by adding :[module_name]:bundleRelease to the targets. 在我的情况下,我正在使用Jenkins构建并且我想在我的工件中同时拥有apk和aar,我可以通过添加:[module_name]:bundleRelease到目标来实现这一点。

So if your module name is test: 因此,如果您的模块名称是test:

:app:assembleRelease :test:bundleRelease

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

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