Hello World项目构建具有依赖性错误

时间:2016-12-29 07:41:55

标签: android-gradle android-studio-2.2

之前有没有人遇到过这个问题?

当我构建一个HelloWorld示例时,我收到以下错误:

  

错误:配置项目':app'发生了问题   >无法解析配置的所有依赖项':app:_debugApkCopy'。
  >模块版本MyApplication:app:unspecified,configuration' _debugApkCopy'声明对配置的依赖'默认'未在MyApplication的模块描述符中声明:app:unspecified

以下是我的build.grade文件:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        mavenCentral()
        maven{url "https://jitpack.io"}
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenCentral()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

0 个答案:

没有答案
相关问题