Android Studio解决 Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolv...

错误信息:

error.png

解决办法:

将依赖代码

    implementation project(path: ':module1')
    implementation project(path: ':module2')

修改如下:

    implementation project(path: ':module1', configuration: 'default')
    implementation project(path: ':module2', configuration: 'default')

你可能感兴趣的:(Android Studio解决 Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolv...)