ÉCHEC: la construction échoue avec une exception dans ionique

Je suis nouveau sur ionique et juste essayer de faire unsigned la construction de mon projet de démonstration à l'aide du soufflet mentionné commande :-

cordova build --version android

mais cette chose est de retour moi d'erreur lors de la construction de apk. Quelqu'un peut-il me dire ce que dois-je faire pour obtenir ce unsigned APk via la ligne de commande.

Voici mon message d'erreur :-

HTML:

* Where:
Build file '/home/ravi/Music/FenoLabs/platforms/android/CordovaLib/build.gradle' line: 49

* What went wrong:
A problem occurred evaluating project ':..:..:..:..:..:Music:FenoLabs:platforms:android:CordovaLib'.
> Project with path ':CordovaLib' could not be found in project ':..:..:..:..:..:Music:FenoLabs:platforms:android:CordovaLib'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 3.385 secs

/home/ravi/Documents/IonicTest/myDemoApp/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
Error code 1 for command: /home/ravi/Documents/IonicTest/myDemoApp/platforms/android/gradlew with args: cdvBuildRelease,-b,/home/ravi/Documents/IonicTest/myDemoApp/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error: /home/ravi/Documents/IonicTest/myDemoApp/platforms/android/cordova/build: Command failed with exit code 8
You may not have the required environment or OS to build this project
Error: /home/ravi/Documents/IonicTest/myDemoApp/platforms/android/cordova/build: Command failed with exit code 8
    at ChildProcess.whenDone (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:755:16)
    at Process.ChildProcess._handle.onexit (child_process.js:822:5)

Et voici mon petit bout de code à partir de construire.gradle fichier :-

HTML:

apply plugin: 'android'

buildscript {
    repositories {
        mavenCentral()
    }

    //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
    if (gradle.gradleVersion >= "2.2") {
        dependencies {
            classpath 'com.android.tools.build:gradle:1.0.0+'
        }
    } else if (gradle.gradleVersion >= "2.1") {
        dependencies {
            classpath 'com.android.tools.build:gradle:0.14.0+'
        }
    } else {
        dependencies {
            classpath 'com.android.tools.build:gradle:0.12.0+'
        }
    }
}

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

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

Grâce

InformationsquelleAutor user2028 | 2015-09-22