gpt4 book ai didi

android - Gradle:任务 compileReleaseAidl 执行失败

转载 作者:太空宇宙 更新时间:2023-11-03 10:47:52 25 4
gpt4 key购买 nike

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

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

这是我的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 build tools 0.6 中解决了,但即使我使用那个版本我也遇到了这个问题。你有什么建议吗?

最佳答案

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

apply plugin: 'android'

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

为此

apply plugin: 'android-library'

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

关于android - Gradle:任务 compileReleaseAidl 执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19307223/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com