简体   繁体   English

当我键入离子cordova构建android

[英]when i type ionic cordova build android

th ionic info global packages: 离子信息全球包:

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

local packages: 本地包裹:

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

System: 系统:

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

✖ Running command - failed! ✖运行命令 - 失败!

[ERROR] Cordova encountered an error. [ERROR] Cordova遇到错误。 You may get more insight by running the Cordova command above directly. 您可以通过直接运行上面的Cordova命令获得更多洞察力。

[ERROR] An error occurred while running cordova build android (exit code 1): [错误]运行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: 1.848 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. FAILURE:构建因异常而失败。

    * 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.

Please update the local packages and the global package to the latest versions and try again. 请将本地软件包和全局软件包更新到最新版本,然后重试。 global packages: 全球套餐:

@ionic/cli-utils : 1.3.0
Cordova CLI      : 7.0.1
Ionic CLI        : 3.3.0

local packages: 本地包裹:

@ionic/app-scripts              : 1.3.0
@ionic/cli-plugin-cordova       : 1.2.1
@ionic/cli-plugin-ionic-angular : 1.2.0
Cordova Platforms               : android 6.1.2
Ionic Framework                 : ionic-angular 3.0.1

System: 系统:

Node       : v6.10.2
OS         : Windows 7
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed

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

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