When I was build my app with cli ionic build android
,then I got a error
- OS : MAC
- ionic: 1.7.13
- cordova: 6.0
- android sdk tools: 24.4.1
- android sdk platform-tools: 23.1
Running command: /Users/caoshuai/openmind/workspace/zm/hooks/after_prepare/010_add_platform_class.js /Users/caoshuai/openmind/workspace/zm
add to body class: platform-android
ANDROID_HOME=/Users/caoshuai/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
: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
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:compileDebugAidl
:CordovaLib:generateDebugBuildConfig
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets
:CordovaLib:processDebugManifest
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJavaWithJavac注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
:CordovaLib:mergeDebugJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
:CordovaLib:bundleDebug
:prepareAndroidCordovaLibUnspecifiedDebugLibrary
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript
:generateDebugBuildConfig
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets
:generateDebugResValues
:generateDebugResources
:mergeDebugResources
AAPT: /Users/caoshuai/openmind/workspace/zm/platforms/android/res/drawable-hdpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT: /Users/caoshuai/openmind/workspace/zm/platforms/android/res/drawable-xxxhdpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT: /Users/caoshuai/openmind/workspace/zm/platforms/android/res/drawable-xhdpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT: /Users/caoshuai/openmind/workspace/zm/platforms/android/res/drawable-ldpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT: /Users/caoshuai/openmind/workspace/zm/platforms/android/res/drawable-xxhdpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT: /Users/caoshuai/openmind/workspace/zm/platforms/android/res/drawable-mdpi/icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
:processDebugManifest
:processDebugResources FAILED
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 '/Users/caoshuai/Library/Android/sdk/build-tools/23.0.1/aapt'' 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.
BUILD FAILED
Total time: 2.849 secs
ERROR building one of the platforms: Error code 1 for command: /Users/caoshuai/openmind/workspace/zm/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/caoshuai/openmind/workspace/zm/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
You may not have the required environment or OS to build this project
Error: Error code 1 for command: /Users/caoshuai/openmind/workspace/zm/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/caoshuai/openmind/workspace/zm/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
I dont know why it’s got falure. is there some one could help ?