实施项目之间的区别(lib_name)

Difference between implementation project (lib_name) & (path,config) in Android

我正在尝试添加模块依赖性。

我写的时候,

implementation project(':services')

它向我显示类似

的错误

无法解析':app @ debugUnitTest / compileClasspath'的依赖项:无法解析项目:services。

同样,
:app @ debugAndroidTest / compileClasspath,
:app @ debug / compileClasspath和
:app @ release / compileClasspath

但是,错误是在我写

之后发生的

implementation project(path: ':services', configuration: 'default')

仍然没有添加依赖项。

PS:
我没有将我的模块制作为库,因为我需要执行AOSP项目。另外,我的模块没有仅活动的服务。

所以,请告诉我发生这种情况的原因,两者之间有什么区别?我天真地了解gradle的工作原理。

EDIT : Found the solution. Please check the answer at link :
https://stackoverflow.com/a/52163856/1999190


我在您的模块中有相同的问题更改。gradle将apply plugin: 'com.android.lapplication'更改为apply plugin: 'com.android.library'