gpt4 book ai didi

android - Firebase Crashlytics 构建错误 : "could not find io.fabric.tools:gradle:1.26.1"

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:34:43 27 4
gpt4 key购买 nike

我试图将 Firebase Crashlytics 集成到我的 React native 应用程序中,但在构建应用程序时遇到了这个错误。

  • What went wrong: A problem occurred configuring root project 'MyApp'.

Could not resolve all artifacts for configuration ':classpath'. Could not find io.fabric.tools:gradle:1.26.1. Searched in the following locations: https://dl.google.com/dl/android/maven2/io/fabric/tools/gradle/1.26.1/gradle-1.26.1.pom https://dl.google.com/dl/android/maven2/io/fabric/tools/gradle/1.26.1/gradle-1.26.1.jar https://repo.maven.apache.org/maven2/io/fabric/tools/gradle/1.26.1/gradle-1.26.1.pom https://repo.maven.apache.org/maven2/io/fabric/tools/gradle/1.26.1/gradle-1.26.1.jar https://jcenter.bintray.com/io/fabric/tools/gradle/1.26.1/gradle-1.26.1.pom https://jcenter.bintray.com/io/fabric/tools/gradle/1.26.1/gradle-1.26.1.jar

Required by: project :

  • Try:

我在 dependencies

中添加了 classpath 'io.fabric.tools:gradle:1.26.1'

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

按照文档中的建议,在 build.gradle 中的 repositories 中。

最佳答案

之前,我遇到了同样的问题,因为我将 url 'https://maven.fabric.io/public' 移到了错误的地方

我想你们也是一样的。我的工作 build.grande

buildscript {
repositories {
google()
jcenter()
// Additional repository for fabric resources
maven {
url 'https://maven.fabric.io/public'
}
}

dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.google.gms:google-services:4.2.0'
// Add fabric classpath
classpath 'io.fabric.tools:gradle:1.26.1'
}
}

allprojects {
repositories {
google()
jcenter()
}
}

rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
delete rootProject.buildDir
}

关于android - Firebase Crashlytics 构建错误 : "could not find io.fabric.tools:gradle:1.26.1",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54459593/

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