Unable to resolve dependency for
依赖module,遇到的错误如下
ERROR: Unable to resolve dependency for ':app@dev/compileClasspath': Could not resolve project :chartlibrary.
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@devUnitTest/compileClasspath': Could not resolve project :chartlibrary.
Show Details
Affected Modules: app
最后经过各种测试,发现和依赖写法有关

image.png
不生效
implementation project(':chartlibrary')
compile project(':chartlibrary')
implementation project(path: ':chartlibrary')
compile project(path: ':chartlibrary')
生效
compile project(path: ':chartlibrary', configuration: 'default')
不知道何种原因,可能跟我使用了debugCompile和releaseCompile有关吧
本文标题:Unable to resolve dependency for
本文链接:https://www.haomeiwen.com/subject/qzxrvqtx.html
网友评论