Software Archive
Read-only legacy content
17061 Discussions

Building the Package Error in Cordova CLI

Richard_S_
Beginner
607 Views

Please help. Does anyone encouter this?

$ cordova build
ANDROID_HOME=/home/hdc-126/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Subproject Path: CordovaLib
null
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_b55i8ij3aqkypm9ge56hedqwj.run(/home/hdc-126/Desktop/Cordova_Project/EliteRX/platforms/android/build.gradle:138)
org.xwalk:xwalk_core_library:19+
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
:preReleaseBuild UP-TO-DATE
: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/hdc-126/Android/Sdk/build-tools/26.0.0/aapt: 1: /home/hdc-126/Android/Sdk/build-tools/26.0.0/aapt: Syntax error: ")" unexpected

 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.918 secs
Error: /home/hdc-126/Desktop/Cordova_Project/EliteRX/platforms/android/gradlew: Command failed with exit code 1 Error output:
/home/hdc-126/Android/Sdk/build-tools/26.0.0/aapt: 1: /home/hdc-126/Android/Sdk/build-tools/26.0.0/aapt: Syntax error: ")" unexpected


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 Kudos
1 Reply
PaulF_IntelCorp
Employee
607 Views

I recommend you search StackOverflow under the Cordova tag for help with this issue.

0 Kudos
Reply