繁体   English   中英

离子构建错误:发生配置根项目“Android”

[英]Ionic Build Error: occurred configuring root project 'Android'

我目前正在构建离子科尔多瓦项目。 但打印出以下错误。 在此处输入图片说明

以下是我的 gradle-wrapper.properties

#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=../gradle-2.13-all.zip

下面的build.gradle

buildscript {
    repositories {
        mavenCentral();
        jcenter()
    }

    // Switch the Android Gradle plugin version requirement depending on the
    // installed version of Gradle. This dependency is documented at
    // http://tools.android.com/tech-docs/new-build-system/version-compatibility
    // and https://issues.apache.org/jira/browse/CB-8143
    dependencies {
        classpath 'com.android.tools.build:gradle-2.13-all'
    }
}

// Allow plugins to declare Maven dependencies via build-extras.gradle.
allprojects {
    repositories {
        mavenCentral();
        jcenter()
    }
}

task wrapper(type: Wrapper) {
    gradleVersion = '2.13'
}

更改您当前的依赖类路径

dependencies {
        classpath 'com.android.tools.build:gradle-2.13-all'
    }

 dependencies {
        classpath 'com.android.tools.build:gradle:2.1.0'
    }

如果这不能解决您的问题,请告诉我。

对于迟到的其他人,只需在 android studio 中的 $(Project_Root)\\platforms\\android 下打开您的 android 项目。 然后 android studio 将负责下载所有正确的依赖项。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM