相关疑难解决方法(0)

无法解析':app @ debugUnitTest / compileClasspath',:app @ debugAndroidTest / compileClasspath的依赖关系

情况:

  1. 创建最简单的项目
  2. 作为文件添加到项目模块->新建->新建模块“电话和平板电脑模块”
  3. 在模块上添加依赖项

并得到错误:

无法解析':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)

模块:应用 …

dependencies gradle

2
推荐指数
1
解决办法
5500
查看次数

标签 统计

dependencies ×1

gradle ×1