Could not find io.fabric.tools.gradle:1.+

时间:2016-08-13 13:28:19

标签: android maven gradle twitter-fabric

I am trying to integrate fabric into my android project. I followed the instruction to add fabric from fabric.io. But I facing some issue given below, why this error?

Error:Could not find io.fabric.tools.gradle:1.+:. Searched in the following locations: file:/C:/Program Files/Android/Android Studio/gradle/m2repository/io/fabric/tools/gradle/1.+//1.+-.pom file:/C:/Program Files/Android/Android Studio/gradle/m2repository/io/fabric/tools/gradle/1.+//1.+-.jar https://maven.fabric.io/public/io/fabric/tools/gradle/1.+//1.+-.pom https://maven.fabric.io/public/io/fabric/tools/gradle/1.+//1.+-.jar Required by: MyApp:app:unspecified

I have added,

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

    dependencies{
       classpath 'io.fabric.tools.gradle:1.+'
    }
}

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。
Twitter Kit API文档有点令人困惑。

我建议安装Fabric IDE Tool并按照步骤逐步整合Fabric。