Android Module app 中访问不到libs包中的class类

来源:互联网 发布:锌镁威力素胶囊 知乎 编辑:程序博客网 时间:2024/04/29 05:01

在Android studio 3.0 之前新建一个App,新建一个Libs库,App引用Libs库,compile project(':xxxLib'); App就可以引用Libs 中的资源了

但是Android studio 3.0之后通过 implementation project(':xxxLib');引用Libs库中的资源引用不到libs包下面的xxx.jar包中的类资源


此时访问libs 中的idcardquality-proguard-1.2.2.jar 包的文件访问不到;

在faceLibs 通过implementation fileTree(include: ['*.jar'], dir: 'libs') 引用libs中的jar包,外部App是访问不到的

要通过compile fileTree(include: ['*.jar'], dir: 'libs')引用libs中的jar包,外部引用faceLib的App才能访问到jar中的类



阅读全文
2 0