android开发工具错误,构建Android -gradle项目时出现crashlytics开发人员工具错误

越姚石
2023-12-01

我正在尝试使用eclipse构建android gradle项目,但是在使用命令行构建项目时出现此错误:

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':app:crashlyticsCleanupResourcesRelease'.

> Crashlytics Developer Tools error.

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug

option to get more log output.

BUILD FAILED

我正在使用gradle 1.10版也尝试过gradle 1.12版,但出现相同的错误

这是我的build.gradle文件:

buildscript {

repositories {

mavenCentral()

maven { url 'http://download.crashlytics.com/maven' }

}

dependencies {

classpath 'com.android.tools.build:gradle:0.12.+'

classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'

classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.10.+'

}

}

apply plugin: 'android-sdk-manager'

apply plugin: 'android'

apply plugin: 'crashlytics'

repositories {

mavenCentral()

maven { url 'http://download.crashlytics.com/maven' }

}

android {

compileSdkVersion 19

buildToolsVersion "19.1.0"

lintOptions.checkReleaseBuilds false

defaultConfig {

minSdkVersion 7

targetSdkVersion 19

}

signingConfigs {

release {

storeFile file(STORE_FILE)

storePassword STORE_PASSWORD

keyAlias KEY_ALIAS

keyPassword KEY_PASSWORD

}

}

buildTypes {

debug {

ext.enableCrashlytics = false

buildConfigField "boolean", "LOG_CRASHES", "false"

}

release {

buildConfigField "boolean", "LOG_CRASHES", "true"

runProguard true

proguardFile 'proguard.cfg'

signingConfig signingConfigs.release

}

}

}

dependencies {

compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'

compile 'com.android.support:support-v4:19.1.0'

compile 'com.crashlytics.android:crashlytics:1.+'

}

 类似资料: