Execution failed Android Studio - android

I can't build my project, the error I get is:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/yanivs/Android/Sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1
I have tried all the answers I could find here, none of them worked.

Related

C:\Users\faizandannisa\AppData\Local\Android\Sdk\ndk\21.4.7075529/ndk-build.cmd'' finished with non-zero exit value 2

FAILURE: Build completed with 8 failures.
1: Task failed with an exception.
What went wrong:
Execution failed for task ':libraries:humla:ndkBuild'.
Process 'command 'C:\Users\faizandannisa\AppData\Local\Android\Sdk\ndk\21.4.7075529/ndk-build.cmd'' finished with non-zero exit value 2

i am trying to run my app I am getting the following error:

Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Mohamed Sallam\AppData\Local\Android\Sdk\build-tools\25.0.0\aapt.exe'' finished with non-zero exit value 1
there may be problem in gradle file config
check for compilesdk version that match all dependencies and build tools
check this

Error:Execution failed for task ':app:processDebugResources'.

Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/sherily/android sdk/android-sdk-macosx/build-tools/android-5.0/aapt'' finished with non-zero exit value 1
build file
Maybe this will help, give it a try:
Build -> Clean Project
then:
Build -> Rebuild Project

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 ?

android studio error when I upload an image

When I upload an image and try to run my app, I am getting this errors .
Error:Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users**\AppData\Local\Android\sdk\build-tools\21.0.2\aapt.exe'' finished with non-zero exit value 42.
Error:Execution failed for task ':app:mergeDebugResources'.
C:\Users**\AndroidstudioProjects**\app\src\main\res\drawable\page2.png: Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users**\AppData\Local\Android\sdk\build-tools\21.0.2\aapt.exe'' finished with non-zero exit value 42
What I can do?
thanks
The answer is here:
Gradle finished with non-zero exit value 1 (ic_launcher.png: error: Duplicate file)

Categories

Resources