gpt4 book ai didi

android - 找不到 io.fabric.tools :gradle

转载 作者:IT老高 更新时间:2023-10-28 23:40:46 29 4
gpt4 key购买 nike

我正在遵循 Fabric 的官方说明

https://www.fabric.io/kits/android/crashlytics/install

这是我的 gradle.build 文件

apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'io.fabric'

buildscript {
ext.kotlin_version = '1.1.51'
repositories {
jcenter()
mavenCentral()
maven {
url 'https://maven.google.com'
}
}
dependencies {
...
classpath 'io.fabric.tools:gradle:1.24.3'

}
}

repositories {
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
maven {
url 'https://maven.google.com'
}
maven { url 'https://maven.fabric.io/public' }

}

android {

compileSdkVersion 22

buildToolsVersion '25.0.3'
defaultConfig {
....
}

}
dependencies {
......
compile('com.crashlytics.sdk.android:crashlytics:2.7.0@aar') {
transitive = true
}
}

apply plugin: 'com.google.gms.google-services'

但是当我尝试同步我的项目时,它说在以下位置找不到 io.fabric.tools:gradle:1.24.3:

Error:Could not find io.fabric.tools:gradle:1.24.3.
Searched in the following locations:

file:/home/dev-00/soft/android-studio-3.0.0/android-studio/gradle/m2repository/io/fabric/tools/gradle/1.24.3/gradle-1.24.3.pom
file:/home/dev-00/soft/android-studio-3.0.0/android-studio/gradle/m2repository/io/fabric/tools/gradle/1.24.3/gradle-1.24.3.jar
https://jcenter.bintray.com/io/fabric/tools/gradle/1.24.3/gradle-1.24.3.pom
https://jcenter.bintray.com/io/fabric/tools/gradle/1.24.3/gradle-1.24.3.jar
... Required by:
project :

最佳答案

在您的 buildscript block 中,您还必须添加结构存储库。

  buildscript {
repositories {
//... jcenter(), google()...
maven { url 'https://maven.fabric.io/public' }
}
}

dependencies {
//......
}
}

关于android - 找不到 io.fabric.tools :gradle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46787741/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com