Crashlytics错误:(11,0)找不到ID为'io.fabric'的插件编译lib [英] Crashlytics Error:(11, 0) Plugin with id 'io.fabric' not found compile lib
本文介绍了Crashlytics错误:(11,0)找不到ID为'io.fabric'的插件编译lib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到错误
错误:(11,0)找不到ID为'io.fabric'的插件
Error:(11, 0) Plugin with id 'io.fabric' not found
当试图在我的项目上运行crashlytics时。
when trying to run crashlytics on my project.
推荐答案
当尝试将Fabric插件用于android studio(插件自动生成代码)时,我遇到了同样的问题。我也遵循了此文档。
I faced the same issue, when tried to use Fabric plugin for android studio(automated code generation by plugin).I followed this documentation also.
最后,我可以看到在构建过程中遗漏了一些行。
And finally, I could see there were some missed lines in build.gradle.
所以这是顶层项目build.gradle
So this is the top level project build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'java'
allprojects {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
}
这是应用模块的build.gradle
and this is the build.gradle for app module
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "your application package name"
minSdkVersion 10
targetSdkVersion 22
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.google.code.gson:gson:2.3'
compile 'com.android.support:support-v4:22.0.0'
testCompile 'junit:junit:4.12'
testCompile "org.mockito:mockito-core:1.9.5"
compile('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
transitive = true;
}
}
,最后进行清理,所有设置对我来说。
and at last "clean build" and all was set for me.
这篇关于Crashlytics错误:(11,0)找不到ID为'io.fabric'的插件编译lib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文