当前位置: 首页 > 知识库问答 >
问题:

Android Studio-无法解析配置“: classpath”的所有依赖项。但可以通过Web浏览器下载

上官季
2023-03-14

我是一个新的Android Studio。这是构建Android应用程序的绝佳工具。但我有一些问题。也就是说:当我将依赖项添加到构建中时。格拉德尔,”

buildscript {
    repositories {
        jcenter(){
            url "http://jcenter.bintray.com/"
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.0'
        classpath 'com.google.gms:google-services:1.5.0-beta2'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

应用程序生成中的依赖项。格拉德尔。

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.android.support:design:23.0.1'
    compile 'com.android.support:support-v4:23.0.1'
    compile 'com.android.support:cardview-v7:23.0.1'

    /* Firebase SDK */
    compile 'com.firebase:firebase-client-android:2.4.0'

    /* Firebase UI */
    compile 'com.firebaseui:firebase-ui:0.2.2'

    /* For Google Play Services */
    compile 'com.google.android.gms:play-services-safetynet:8.3.0'
    compile 'com.google.android.gms:play-services-auth:8.3.0'
}
"

我收到消息了“

Error:A problem occurred configuring project ':app'.
> Could not download jackson-databind.jar (com.fasterxml.jackson.core:jackson-databind:2.2.2)
   > Could not get resource 'https://jcenter.bintray.com/com/fasterxml/jackson/core/jackson-databind/2.2.2/jackson-databind-2.2.2.jar'.
      > Could not GET 'https://jcenter.bintray.com/com/fasterxml/jackson/core/jackson-databind/2.2.2/jackson-databind-2.2.2.jar'.
         > peer not authenticated
"

但当我粘贴链接时'https://jcenter.bintray.com/com/fasterxml/jackson/core/jackson-databind/2.2.2/jackson-databind-2.2.2.jar“在网络浏览器上,我可以下载jackson-databind-2.2.2。罐子我不知道为什么android studio“无法获取资源”https://jcenter.bintray.com/com/fasterxml/jackson/core/jackson-databind/2.2.2/jackson-databind-2.2.2.jar'.

你能解释一下并帮我解决吗?

共有1个答案

韩彦君
2023-03-14
  1. 下载jackson-databind-2.2.2。罐子

最后,您可以使用jackson-databind-2.2.2。jar在您的项目中。

 类似资料: