-1

I import a project in android studio. This project has SDK higher than my SDK. I update my SDK but i see this error for project: 23-0-1-aapt-exe finished with non zero exit value 1. I test other SDK like:23.0.2, 21.1.2, 21.1.1 but this error still there is. I cleaned project and rebuilt in many time but did not solve my problem. Here is my SDK:enter image description here

Here is my gradle details:

  android {
  compileSdkVersion 23
  buildToolsVersion '23.0.2'
  }

 defaultConfig {
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 695
}

I need help.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
AndroidDev
  • 701
  • 3
  • 9
  • 21
  • Possible duplicate of [finished with non zero exit value](http://stackoverflow.com/questions/29249986/finished-with-non-zero-exit-value) – Phantômaxx Feb 16 '16 at 15:31

1 Answers1

0

Did you update your Manifest.xml file to point to <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" />? Since you have SDK build tools for version 22, roll your target version back to 22 and see if the issue persists.

Joshua Poling
  • 561
  • 8
  • 29
  • I updated Manifest.xml file. Now try SDK build tools v.22 but my problem dose not sole. – AndroidDev Feb 16 '16 at 15:14
  • Can you post the entire error message you are getting? – Joshua Poling Feb 16 '16 at 15:29
  • Error:Execution failed for task ':Project:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Android\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 1 – AndroidDev Feb 16 '16 at 15:29
  • You are most likely referencing something that either doesn't exist or has a conflicting resource. As suggested by @HrundiBakshi look into duplicate post. Open command prompt Cd to project folder, and run command gradlew assembleDebug --info. This should narrow down your error. Please post error message received. – Joshua Poling Feb 16 '16 at 15:48
  • libraries in my Dependencies are V.21.0.3 but in project has used V.23.1.+. I changed them to my version. Do you think my problem is for this change? – AndroidDev Feb 16 '16 at 15:51
  • Most likely you are compiling for V21 and not V23. If you fixed this dependency try to recompile the program again and see if the error persists. – Joshua Poling Feb 16 '16 at 16:01
  • yes by your guidance. thank you very very much. you save my time. – AndroidDev Feb 16 '16 at 18:22
  • Would you mind marking as answered? Just click the check mark next to my original comment. Glad to help! – Joshua Poling Feb 16 '16 at 22:12