1

I'm using Android-Studio.
When i tried to compile the project i got error:

Error:Execution failed for task ':app:processDebugResources'.
> at index 4

build.gradle file:

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
    applicationId "com.myapp.user.myapp"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.parse.bolts:bolts-android:1.+'
compile 'com.parse:parse-android:1.+'
}

Any suggestion please?thanks!

2 Answers2

0

Change:

This: buildToolsVersion "23.0.2"

To: buildToolsVersion "21.0.1"

The newer buildTools sometimes have some bugs

0

I was having this exact same issue today. This is how I fixed it:

  1. Check to see that the latest 23.0.3 build tool was installed. In my case (shown below), I noticed it wasn't installed: Install the 23.0.3 SDK Build-tools

  2. Then, in my app level build.gradle, I changed this:

    android {
        compileSdkVersion 23
        buildToolsVersion "23.0.2"
    

    to

    android {
        compileSdkVersion 23
        buildToolsVersion "23.0.3"
    

Hopefully this helps anyone encountering this issue recently.

VIN
  • 6,385
  • 7
  • 38
  • 77