简体   繁体   中英

aar file size of third party library inside android library project reducing to 0

I have created an android library project and included some third party libraries (aar files) in lib folder. When I am generating library project build, I checked during aar file analysis that it still contains all third party libraries in lib folder but their size is 0. I am also getting class not found exception for third party library classes. I have tried both debug and release build. I have added all dependencies as

implementation fileTree(include: [' .jar', ' .aar'], dir: 'libs')

and then also tried individual

 implementation files('libs/XXX.aar') implementation files('libs/XYZ.aar') implementation files('libs/ABC.aar') implementation files('libs/ABD.aar') implementation files('libs/ABE.aar') implementation files('libs/ABK.aar') 

在此处输入图片说明

The lib that you created will be in a separate folder and not with the app source code. you will find the sharable lib there.

Project -> lib name -> build -> output -> aar -> {lib name}-release.arr

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