Android Studio Error:Execution failed for task ':app:zipalignDebug'. - android

I tried to run one of my old projects in android studio & I am getting the following error :
Error:Execution failed for task ':app:zipalignDebug'.
> A problem occurred starting process 'command '/home/newaj/Android/build-tools/25.0.0/zipalign''

Related

Path to cmake in Android

When building my Android project in AndroidStudio 3.6.1 I'm getting an error message:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mobile:externalNativeBuildCleanDebug'.
> A problem occurred starting process 'command 'C:\Users\myusername\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe''
cmake is correctly installed but myusername does not exists. Instead, it should be a different folder.
Where can I change the path?

Ionic cordova Execution failed for task ':transformClassesWithDexForDebug'

I am trying to build my ionic app and get the following error.
Error: /Applications/MAMP/htdocs/ionic/newBuild/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/app/NavUtils$NavUtilsImpl;
Does anyone know how to fix?
I found the issue to be the document viewer plugin I removed this and the support-v4.jar which this plugin depended on and is now fixed.

angular2 cordova android failing to run in emulator

I setup a basic angular2 app in cordova, it runs fine in iOS but with android I'm getting build failed with an exception, I can run android fine in a basic cordova app.
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 '/usr/local/opt/android-sdk/build-tools/24.0.2/aapt'' finished with non-zero exit value 1
Error: /Users/username/Code/workshop/cordova/angular-2/MyApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
ok i resolved the issue which was caused by node_modules folder being too heavy for the emulator to launch, i cut a lot of fat from node_modules (i.e deleted dependencies and other fluff that wasn't needed) and increased the resources available to the avd.
things ran smooth after that :)

phonegap build fail : Execution failed for task ':processDebugResources'

When trying to build my app
phonegap local build android
I have this issue :
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/xxxxxxxx/Library/Android/sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1
I have no idea of how to resolve this, since this problem is mostly encoutered by people developing their app in java.
Thanks in advance for your answers
I had same issue. It turned out to be that I had bad (or missed) some icon/splash-screen images (ie: platforms/android/res/drawable-hdpi etc) and other images.
You can check that runnning './gradlew --debug clean build' from your platforms/android directory. Search in the log for the ':processDebugResources FAILED' string and close to it the file-name that caused the problem. In my case it was 'año nuevo.png' (the 'ñ' caused the issue)
If that doesn't work, have a look at these other SO-questions, they may help too:
ionic build android failure - Execution failed for task processDebugResources
Cordova build android error Execution failed for task ':processDebugResources'
Android Studio build failed at "processDebugResources" when using 9-patch images
PS: Im using latest phonegap (6.3.0) and latest Android Studio (2.1.2)

android: Execution failed for task error

when i try to build my android application or sync gradle i get this error : `Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Android Development\sdk\sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1`
i use last version of build tools
how can i slove this problem ?

Categories

Resources