Gradle: Execution completed for compileReleaseAidl task

I am having problems upgrading to Gradle 1.8 in android studio. When I compile, I get this error:

Gradle: Execution failed for task ':App Code:compileReleaseAidl'.
> Could not call IncrementalTask.taskAction() on task ':App Code:compileReleaseAidl'

This is my build.gradle:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.6.+'
        classpath 'com.newrelic.agent.android:agent-gradle-plugin:2.397.0'
    }
}

repositories {
    mavenCentral()
    maven {
        url 'http://www.bugsense.com/gradle/'
    }
}

apply plugin: 'android'
apply plugin: 'newrelic'

dependencies {
    compile 'com.newrelic.agent.android:android-agent:2.397'
    compile 'com.android.support:support-v4:18.0.+'
    compile 'com.android.support:appcompat-v7:18.0.+'
    compile 'com.intellij:annotations:12.+'
    compile 'com.bugsense.trace:bugsense:3.5'
    compile 'com.google.android.gms:play-services:3.1.+'
    compile 'net.hockeyapp.android:HockeySDK:3.0.+'
    compile fileTree(dir: 'libs', include: '*.jar')
    compile project(':libraries:facebook')
}

android {
    compileSdkVersion 18
    buildToolsVersion "18.1"

    defaultConfig {
        minSdkVersion 8
        targetSdkVersion 18
    }

    signingConfigs {
        release {
            storeFile file("/path/to/keystore")
            storePassword "my-store-password"
            keyAlias "my-key-alias"
            keyPassword "my-key-password"
        }
    }
    buildTypes {
        release {
            signingConfig signingConfigs.release
            debuggable true
            jniDebugBuild false
        }
    }
}

I did some research and found that this problem should have been resolved in the android 0.6 build tools, but I am experiencing the problem even if I use this version. Do you have any suggestions?

+4
source share
1 answer

Having the same problem based on this gradle article: I am changing build.gradle as follows:

apply plugin: 'android'

dependencies {
    compile files('libs/android-support-v4.jar')
}

to that

apply plugin: 'android-library'

dependencies {
    compile files('libs/android-support-v4.jar')
}
+1
source

All Articles