情况:
并得到错误:
无法解析':app @ debug / compileClasspath'的依赖关系:无法解析项目:testmodule。
无法解析':app @ debugAndroidTest / compileClasspath'的依赖项:无法解析项目:testmodule。
无法解析':app @ debugUnitTest / compileClasspath'的依赖关系:无法解析项目:testmodule。
无法解决':app @ release / compileClasspath'的依赖关系:无法解决项目:testmodule。
无法解析':app @ releaseUnitTest / compileClasspath'的依赖关系:无法解析项目:testmodule。
以下是项目文件:
项目:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)
模块:应用 …