使用离子cordova构建构建Android应用程序时出错

时间:2017-05-17 10:21:59

标签: ionic-framework

这是我的离子信息 全球套餐:

@ionic/cli-utils : 1.0.0
Cordova CLI      : 7.0.1 
Ionic CLI        : 3.0.0

本地包裹:

@ionic/cli-plugin-cordova : 1.0.0
@ionic/cli-plugin-ionic1  : 1.1.2
Ionic Framework           : ionic1 1.3.3

系统:

Node       : v7.9.0
OS         : Linux 4.4
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed

我收到了这个错误:

  

cordova build android   ✖运行命令 - 失败!

[错误] Cordova遇到错误。         您可以通过直接运行上面的Cordova命令获得更多洞察力。

[错误]运行cordova build android时出错(退出代码1):

    Running command: /home/mohamed/Bureau/IonicApp/PFE/hooks/after_prepare/010_add_platform_class.js /home/mohamed/Bureau/IonicApp/PFE
    ANDROID_HOME=/home/mohamed/Android/Sdk
    JAVA_HOME=/usr/lib/java/jdk1.8.0_131
    Subproject Path: CordovaLib
    The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_5epix5or8n8ltg7s8l8l2lith.run(/home/mohamed/Bureau/IonicApp/PFE/platforms/android/build.gradle:137)
    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
    Incremental java compilation is an incubating feature.
    The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
    :preBuild UP-TO-DATE
    :preDebugBuild UP-TO-DATE
    :checkDebugManifest
    :CordovaLib:preBuild UP-TO-DATE
    :CordovaLib:preDebugBuild UP-TO-DATE
    :CordovaLib:checkDebugManifest
    :CordovaLib:prepareDebugDependencies
    :CordovaLib:compileDebugAidl UP-TO-DATE
    :CordovaLib:compileDebugNdk UP-TO-DATE
    :CordovaLib:compileLint UP-TO-DATE
    :CordovaLib:copyDebugLint UP-TO-DATE
    :CordovaLib:mergeDebugShaders UP-TO-DATE
    :CordovaLib:compileDebugShaders UP-TO-DATE
    :CordovaLib:generateDebugAssets UP-TO-DATE
    :CordovaLib:mergeDebugAssets UP-TO-DATE
    :CordovaLib:mergeDebugProguardFiles UP-TO-DATE
    :CordovaLib:packageDebugRenderscript UP-TO-DATE
    :CordovaLib:compileDebugRenderscript UP-TO-DATE
    :CordovaLib:generateDebugResValues UP-TO-DATE
    :CordovaLib:generateDebugResources UP-TO-DATE
    :CordovaLib:packageDebugResources UP-TO-DATE
    :CordovaLib:processDebugManifest UP-TO-DATE
    :CordovaLib:generateDebugBuildConfig UP-TO-DATE
    :CordovaLib:processDebugResources/home/mohamed/Android/Sdk/build-tools/25.0.3/aapt: 3: /home/mohamed/Android/Sdk/build-tools/25.0.3/aapt: Syntax error: Unterminated quoted string

     FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':CordovaLib:processDebugResources'.
    > com.android.ide.common.process.ProcessException: Failed to execute aapt

    * 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: 7.305 secs
    Error: /home/mohamed/Bureau/IonicApp/PFE/platforms/android/gradlew: Command failed with exit code 1 Error output:
    /home/mohamed/Android/Sdk/build-tools/25.0.3/aapt: 3: /home/mohamed/Android/Sdk/build-tools/25.0.3/aapt: Syntax error: Unterminated quoted string


    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':CordovaLib:processDebugResources'.
    > com.android.ide.common.process.ProcessException: Failed to execute aapt

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

0 个答案:

没有答案
相关问题