gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 02:06:28 24 4
gpt4 key购买 nike

我想在我的项目上安装 Firebase Crashlytics,但在构建时遇到这样的问题

尝试过- 我可以评论//应用插件:“io.fabric”- 我将版本类路径 'io.fabric.tools:gradle:1.28.1' 删除到 classpath 'io.fabric.tools:gradle:1.28.0'

android/build.gradle

        classpath 'com.google.gms:google-services:4.2.0'
classpath 'io.fabric.tools:gradle:1.28.1'
  maven {
url 'https://maven.fabric.io/public'
}

gradle-wrapper.properties

distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip

proguard-rules.pro

-keep class io.invertase.firebase.** { *; }
-dontwarn io.invertase.firebase.**

应用程序/build.gradle

    // Firebase dependencies
implementation "com.google.android.gms:play-services-base:16.1.0"
implementation "com.google.firebase:firebase-core:16.0.9"
implementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar') {
transitive = true
}


apply plugin: "io.fabric"

问题

> Could not resolve all artifacts for configuration ':classpath'.
> Could not find io.fabric.tools:gradle:1.28.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/io/fabric/tools/gradle/1.28.1/gradle-1.28.1.pom
- https://dl.google.com/dl/android/maven2/io/fabric/tools/gradle/1.28.1/gradle-1.28.1.jar
- https://jcenter.bintray.com/io/fabric/tools/gradle/1.28.1/gradle-1.28.1.pom
- https://jcenter.bintray.com/io/fabric/tools/gradle/1.28.1/gradle-1.28.1.jar
Required by:
project :

最佳答案

试试这个

项目.gradle

dependencies {
classpath 'com.android.tools.build:gradle:3.4.0'

}

应用程序/build.gradle

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

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

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

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

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