Ionic build android error why?


#1

C:\Ionic\Project\com.esun.community>ionic build android
Running command: “C:\Program Files (x86)\nodejs\node.exe” C:\Ionic\Project\com.esun.community\hooks\after_prepare\010_add_platform_class.js C:\Ionic\Project\com.esun.community

add to body class: platform-android

ANDROID_HOME=C:\Android\android-sdk

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131

Observed package id ‘tools’ in inconsistent location ‘C:\Android\android-sdk\tools - �ƻs’ (Expected ‘C:\Android\android-sdk\tools’)

Already observed package id ‘tools’ in ‘C:\Android\android-sdk\tools’. Skipping duplicate at ‘C:\Android\android-sdk\tools - �ƻs’

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

UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard

UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac
UP-TO-DATE

:CordovaLib:processDebugJavaRes
UP-TO-DATE

:CordovaLib:transformResourcesWithMergeJavaResForDebug

UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug

UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders
UP-TO-DATE

:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
UP-TO-DATE

:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
UP-TO-DATE
:CordovaLib:bundleDebug
UP-TO-DATE

:prepareAndroidCordovaLibUnspecifiedDebugLibrary
UP-TO-DATE
:preReleaseBuild UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE

:CordovaLib:compileReleaseNdk UP-TO-DATE

:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles
UP-TO-DATE

:CordovaLib:packageReleaseRenderscript

UP-TO-DATE
:CordovaLib:checkReleaseManifest

:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseRenderscript
UP-TO-DATE

:CordovaLib:generateReleaseResValues UP-TO-DATE
:CordovaLib:generateReleaseResources UP-TO-DATE
:CordovaLib:packageReleaseResources

UP-TO-DATE
:CordovaLib:compileReleaseAidl
UP-TO-DATE

:CordovaLib:generateReleaseBuildConfig
UP-TO-DATE

:CordovaLib:mergeReleaseShaders

UP-TO-DATE
:CordovaLib:compileReleaseShaders
UP-TO-DATE
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets

UP-TO-DATE
:CordovaLib:processReleaseManifest

UP-TO-DATE
:CordovaLib:processReleaseResources
UP-TO-DATE

:CordovaLib:generateReleaseSources UP-TO-DATE
:CordovaLib:incrementalReleaseJavaCompilationSafeguard

UP-TO-DATE
:CordovaLib:compileReleaseJavaWithJavac
UP-TO-DATE

:CordovaLib:processReleaseJavaRes

UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease

UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:CordovaLib:mergeReleaseJniLibFolders

UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
UP-TO-DATE
:CordovaLib:bundleRelease
UP-TO-DATE

:prepareComAndroidSupportSupportCompat2520Library

UP-TO-DATE
:prepareComAndroidSupportSupportCoreUi2520Library
UP-TO-DATE

:prepareComAndroidSupportSupportCoreUtils2520Library
UP-TO-DATE

:prepareComAndroidSupportSupportFragment2520Library
UP-TO-DATE

:prepareComAndroidSupportSupportMediaCompat2520Library
UP-TO-DATE

:prepareComAndroidSupportSupportV42520Library
UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesBase1026Library
UP-TO-DATE

:prepareComGoogleAndroidGmsPlayServicesBasement1026Library
UP-TO-DATE

:prepareComGoogleAndroidGmsPlayServicesGcm1026Library
UP-TO-DATE

:prepareComGoogleAndroidGmsPlayServicesIid1026Library
UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesTasks1026Library
UP-TO-DATE

:prepareComPushbotsPushbotsLib302Beta3Library
UP-TO-DATE

:prepareDebugDependencies
:compileDebugAidl
UP-TO-DATE

:compileDebugRenderscript
UP-TO-DATE

:generateDebugBuildConfig

UP-TO-DATE
:mergeDebugShaders
UP-TO-DATE
:compileDebugShaders
UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets

:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources
UP-TO-DATE

:processDebugManifest
UP-TO-DATE

:processDebugResources
FAILED

BUILD FAILED

Total time: 2.238 secs

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processDebugResources’.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Android\android-sdk\build-tools\23.0.3\aapt.exe’’ finished with non-zero exit value 1

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

Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processDebugResources’.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Android\android-sdk\build-tools\23.0.3\aapt.exe’’ finished with non-zero exit value 1

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