crashlytics android studio gradle 构建失败 [英] crashlytics android studio gradle build failed

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

问题描述

我已经在 android studio 0.9.3 上安装了 crashlytics 插件;在此之后,我添加到我的项目中;它在 gradle、第一个活动等中添加了几行……;此构建失败并出现此错误后:

I have installed crashlytics plugin to android studio 0.9.3; after this I added to my project; It added lines to gradle, first activity and so on...; after this build fails with this error:

错误:任务:app:fabricCleanupResourcesDebug"的执行失败.

Error:Execution failed for task ':app:fabricCleanupResourcesDebug'.

Crashlytics 开发者工具错误.

Crashlytics Developer Tools error.

这是我的 gradle 文件,我应该更改什么?Crashlytics 自动添加了它的行:

Here is my gradle file, what should I change ? Crashlytics added it's lines automatically:

buildscript {
  repositories {
    maven {
      url 'https://maven.fabric.io/public'
    }
  }

  dependencies {
    classpath 'io.fabric.tools:gradle:1.+'
  }
}
apply plugin : 'com.android.application' apply plugin : 'io.fabric'

repositories {
  maven {
    url 'https://maven.fabric.io/public'
  }
}

android {
  compileSdkVersion 21
  buildToolsVersion "21.0.2"

  defaultConfig {
    applicationId "XXXXXXXXXXXXXXXXXXXXXXX"
    minSdkVersion 11
    targetSdkVersion 19
    versionCode 1
    versionName "1.0"
  }
  buildTypes {
    release {
      runProguard false
      proguardFiles getDefaultProguardFile('proguard-android.txt'),
      'proguard-rules.pro'
    }

  }
}

dependencies {
  compile fileTree(dir : 'libs', include : ['*.jar'])
  compile 'com.android.support:appcompat-v7:21.0.0'
  compile('com.crashlytics.sdk.android:crashlytics:2.1.0@aar') {
    transitive = true;
  }
}

.

推荐答案

我已经解决了这个问题.我与 crashlytics 团队进行了长时间的交谈,但他们没有帮助我.

I have solved the issue. I had long conversation with crashlytics team, but they didn't helped me.

我的解决方案是创建单独的项目,并在该项目上安装 crashlytics.它将在该项目上生成 api 密钥.我只是复制了那个键并粘贴到我的原始项目中,它起作用了.不知道为什么它没有在我的初始项目中生成密钥.

My solution is to create separate project, and install crashlytics on that project. It will generate api key on that project. I just copied that key and pasted to my original project and it worked. Have no idea why it didn't generated the key on my initial project.

这篇关于crashlytics android studio gradle 构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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