While i give this command on cmd
$ ionic build android
It returns with a build error
- What went wrong:
Execution failed for task ‘:processDebugResources’.
com.android.ide.common.internal.LoggedErrorException: Failed to run command:
Plz anyone help…
While i give this command on cmd
$ ionic build android
It returns with a build error
com.android.ide.common.internal.LoggedErrorException: Failed to run command:
Plz anyone help…
I think this is an Exception in your code
Which library you added recently or Give details about your error
give details about your latest lib , plugin you have added … it will be incompatible with your android sdk. also mention your android sdk
C:\Windows\System32\HelloA>ionic build android
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Running command: “C:\Program Files\nodejs\node.exe” C:\Windows\System32\HelloA\hooks\after_prepare\010_add_platform_class.js C:\Windows\System32\HelloA
add to body class: platform-android
ANDROID_HOME=C:\Users\krzsh\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101
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
BUILD FAILED
Total time: 3.316 secs
FAILURE: Build failed with an exception.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Users\krzsh\AppData\Local\Android\Sdk\build-tools\24.0.2\aapt.exe’’ finished with non-zero exit value 1
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Users\krzsh\AppData\Local\Android\Sdk\build-tools\24.0.2\aapt.exe’’ finished with non-zero exit value 1