How can I build both aar and apk of my android project

I am developing an Android library in Android Studio.

I also created a dummy Android Apps project to import this library and test it. For this reason, I have imported my android library as a library in this android app. My problem is that when I generate the apk in the output folder, I can only see the apk and there is no folder for the generated aar.

How can I generate my Aran?

+3


source to share


1 answer


So I figured it out, it wasn't hard, but I'll just post the answer here in case I save someone. When I selected build apk the aar is not built on the outputs of the main project, however it is built in the outputs of the corresponding library.



0


source







All Articles