Error:Unable to resolve dependency for ‘:appname@buildtype/compileClasspath’: Could not resolve project :library
有几种方式
1、file—setting—gradle—offline work 关掉
2、file—setting—gradle 中使用的gradle 和 gradle-wrapper.properties 是否有冲突
3、file—setting—system settings—http proxy 看下是否使用代理。把gradle.properties 中的代理注释掉
4、看下依赖的implementation 替换成api 。
5、依赖方的buildtype 和 被依赖的 buildtype 是否一致 ,没有时写成空的也行。
6、clean rebuild project ,file—invalidate and start
都检查一遍,能解决大部分问题。