Hi! I’m new to ionic and I’m tryin to create my first project, but I have a error when do ionic build android.
Can someone help me?
When I try ‘ionic build android’ :
safire@safire:~/myIonicApp$ ionic build android
Running command: /home/safire/myIonicApp/hooks/after_prepare/010_add_platform_class.js /home/safire/myIonicApp
add to body class: platform-android
ANDROID_HOME=/home/safire/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-oracle
: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: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'.
> A problem occurred starting process 'command '/home/safire/android-sdk-linux/build-tools/23.0.3/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: 2.791 secs
Error: Error code 1 for command: /home/safire/myIonicApp/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/safire/myIonicApp/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
My system information:
Cordova CLI: 6.1.1
Ionic Version: 1.3.0
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
OS: Distributor ID: Ubuntu Description: Ubuntu 16.04 LTS
Node Version: v4.2.6
Same problem here
Running command: /home/vladzur/MisProyectos/ionic/parcuatro/hooks/after_prepare/010_add_platform_class.js /home/vladzur/MisProyectos/ionic/parcuatro
add to body class: platform-android
ANDROID_HOME=/home/vladzur/Opt/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
: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: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 ‘/home/vladzur/Opt/android-sdk-linux/build-tools/23.0.3/aapt’’ finished with non-zero exit value 127
- 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: 2.023 secs
Error: Error code 1 for command: /home/vladzur/MisProyectos/ionic/parcuatro/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/vladzur/MisProyectos/ionic/parcuatro/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 1.3.0
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS: Distributor ID: Ubuntu Description: Ubuntu 16.04 LTS
Node Version: v5.11.0
Well, I just installed some packages and the problem disappeared
sudo apt-get install lib32stdc++6 lib32z1
1 Like
how can i install this libs on a mac ?
i tried :
brew install lib32stdc++6 lib32z1
and couldn’t find it:
Error: No available formula with the name “lib32stdc++6”
==> Searching for similarly named formulae…
Error: No similarly named formulae found.
==> Searching taps…
Error: No formulae found in taps.
thank you for your tip, now it’s work
Thanks man! It’s solve my problem here too.