简体   繁体   中英

How to create *.aar file from “existing” android studio project ( Not creating new android library)?

I searched how to create *.aar file but all of them say to create library then add your classes then Double click assemble ... the *.aar is created in build/...

but I need to create *.aar file from existing (already created and coded) project

so my question is :

how to create *.aar file from "existing" android studio project ( Not creating new android library) ?

Thanks in advance


I did Morrison Chang's solution (thx)

将项目转换为库的解决方案

made it as module library after double clicking on assemble some errors come : 你可以在这里看到错误

I did what morrison said I got that error which i sent as photo the solution for that error was just to "Rebuilt project" after "File/Sync project ..." ( which is funny :) )

now I have aar file in my app/build/...

结果为* .aar

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