我的库项目使用了很少的第三方依赖,比如
api 'com.mikhaellopez:circularimageview:3.0.2'
implementation 'com.genius:groupie:0.7.0'
我将此库项目部署到私有maven repo中,并在具有依赖性的app模块上使用它
implementation "a-group:a-artifact:0.1.2@aar"
现在的问题是,当我尝试运行应用程序时,出现构建错误
Error:(30, 52) error: package com.mikhaellopez.circularimageview does not exist
在库模块的一个类中。 app模块不使用此依赖项,而只使用库模块中的类。
当我从项目结构中查看外部库时,我没有看到循环ImageView或Groupie的依赖项。但是,位于Maven服务器的pom文件会在库模块中列出这些依赖项。
我尝试使用implementation
切换api
,但无效。
app项目中的外部库是否应该列出库模块使用的依赖项?