Greetings friends, I have a problem with apache cordova
when building my application. I am using ubuntu 16.04 LTS 32 bits
I have been able to investigate the matter and I have found that there are similar problems in this version of ubuntu
, the version of cordova that I use is 6.3.0 The necessary tools to build this type of applications are the following and with their respective version:
version of nodejs 4.2.6
version of apache ant 1.9.6
java-8-openjdk-i386
SDK manager rev 25.1.7
Tools Android SDK tools version 25.1.7
Android SDK platform-tools version 24.0.1
Android SDK build-tools 24.0.1
Android 6.0 (API 23)
Extras Google repository and Android support repository
Environment variables of the "SDK" location: ~/.bashrc
export PATH=$PATH:/opt/android/sdk/platform-tools
export PATH=$PATH:/opt/android/sdk/tools
When executing the command
:~/cordovaApp$ cordova build android
As a result I receive the fault
ANDROID_HOME=/opt/android/sdk
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-i386
Incremental java compilation is an incubating feature.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':CordovaLib:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/opt/android/sdk/build-tools/24.0.1/aapt'' finished with non-zero exit value 2
* 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: 11.157 secs
Error: /home/ricar1997/cordovaApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
Someone who has the same problem in ubuntu 16.04
would be very helpful if he could find the solution to this question.