[英]Exclude crashlytics from twitter fabric
I would like to exclude crashlytics from fabric because when I try to integrate the sdk following the instructions here , I get the following error: 我想从架构中排除crashlytics,因为当我尝试按照此处的说明集成sdk时,出现以下错误:
Error:Execution failed for task ':app:fabricCleanupResourcesDebug'.
> Crashlytics Developer Tools error.
My goal is to be able to compose a tweet with this guide which I believe, needs the previous plugin to be installed first. 我的目标是能够与本指南撰写一条鸣叫曲,我认为,需要首先安装先前的插件。 Adding
maven { url 'https://maven.fabric.io/repo' }
only doesn't work and result in a not found library exception. 仅添加
maven { url 'https://maven.fabric.io/repo' }
不起作用,并导致找不到库异常。 Thank you 谢谢
Mike from Fabric here. 来自Fabric的Mike。
Using the Twitter Kit will allow you to bypass that guide, but use: 使用Twitter工具包将使您绕过该指南,但请使用:
maven { url 'https://maven.fabric.io/public' }
instead of /repo to get the library. 而不是/ repo来获取库。
Thank you but I found a way to get it working by using the following directives in my build.gradle: 谢谢,但是我在build.gradle中使用以下指令找到了一种使其工作的方法:
buildscript {
repositories {
jcenter()
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
classpath "io.fabric.tools:gradle:1.+"
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.+'
compile ('com.twitter.sdk.android:twitter:1.1.1@aar') {
transitive = true;
}
compile ('com.twitter.sdk.android:tweet-composer:0.7.2@aar')
{
transitive = true;
}
compile project(':library')
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.