亲测可以使用
1.将aar包复制到library libs目录下
2.在library build.gradle文件中配置如下:
implementationfileTree(dir:"libs",include:["*.jar","*.aar"])
如果library的aar包app主工程也需要引用,则可将implementation替换成api实现
apifileTree(dir:"libs",include:["*.jar","*.aar"])
api(name: '****', ext: 'aar')
网友评论