简体   繁体   中英

How to generate multiple aar in AGP 3.5 and Gradle Wrapper 5.4.1?

Recently I updated Android Studio along with the Android Gradle Plugin (3.2.1 -> 3.5) and Gradle Wrapper (4.10.1 -> 5.4.1) and the tool I've been using to generate the corresponding libraries stopped working

Apparently this is a problem of the update and the plugin I use, however I don't want to downgrade all these changes (I already tried and Android Studio starts showing a bunch of weird errors) so I searched for another way to generate them (While someone updates the plugin) and found this but my knowledge about gradle is close to zero so i don't know how to implement it

I just need a script, plugin or something to be able to publish via a gradle task the generated aar by each flavor i have to my mavenLocal

Can someone show me a working example so I can emulate it?

Thanks.

In case someone has the same problems, it was an error in the implementation of the plugin, by placing an issue the owner of the repo helped me in solving my problem (due to my own ignorance).

Additionally if you don't want to use third party options, official support for the maven publish plugin will be bundled starting with Android Studio 3.6, you can get the current preview release here: Current AS preview

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