简体   繁体   中英

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

I have some lib modules in my Android project. 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.

It seems that the AAR libs are no longer produced in this new version.

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.

So if your module name is test:

:app:assembleRelease :test:bundleRelease

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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