Gradle:任务 compileReleaseAidl 执行失败 [英] Gradle: Execution failed for task compileReleaseAidl

查看:37
本文介绍了Gradle:任务 compileReleaseAidl 执行失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 android studio 中更新到 Gradle 1.8 时遇到问题.当我编译时出现此错误:

I'm having problems updating 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'

这是我的 build.gradle:

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
        }
    }
}

我做了一些研究,发现这个问题应该已经在 android 构建工具 0.6 中解决了,但即使我使用的是那个版本,我也遇到了这个问题.你有什么建议吗?

I did some research and found that this problem should have been solved in android build tools 0.6, but i'm experiencing the issue even if i'm using that version. Do you have any suggestion?

推荐答案

有同样的问题,基于 thisgradle 文章: 我从这里更改了 build.gradle:

Having the same problem, based on this gradle article: i change the build.gradle from this:

apply plugin: 'android'

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

到这里

apply plugin: 'android-library'

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

这篇关于Gradle:任务 compileReleaseAidl 执行失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆