Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/347.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 错误:您的项目buildScript或buildSrc类路径上似乎有guava-jdk5_Java_Firebase_Android Studio - Fatal编程技术网

Java 错误:您的项目buildScript或buildSrc类路径上似乎有guava-jdk5

Java 错误:您的项目buildScript或buildSrc类路径上似乎有guava-jdk5,java,firebase,android-studio,Java,Firebase,Android Studio,由于我从本地文件夹中删除了项目,并将项目从git克隆到新文件夹中,所以出现了此错误。到目前为止,我在网上找到的解决方案似乎与我的有着不同的依赖关系 这是build.gradle文件 buildscript { repositories { google() jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:

由于我从本地文件夹中删除了项目,并将项目从git克隆到新文件夹中,所以出现了此错误。到目前为止,我在网上找到的解决方案似乎与我的有着不同的依赖关系

这是
build.gradle
文件

buildscript {
    repositories {
        google()
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3'
        classpath 'com.google.api-client:google-api-client:1.23.0'
    }
}

apply plugin: 'com.android.application'

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.google.firebase:firebase-auth:16.0.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

    implementation 'com.google.android.gms:play-services-location:15.0.1'
    implementation 'com.google.android.gms:play-services-maps:15.0.1'
    implementation 'com.android.support:design:28.0.0-beta01'
    implementation 'com.google.android.gms:play-services-auth:15.0.1'
    implementation 'com.github.bumptech.glide:glide:3.7.0'


}

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

什么是
classpath'com.google.api客户端:googleapi客户端:1.23.0'
好用?!我不太清楚我什么时候以及为什么添加了这一行,但是注释掉这一行似乎没有任何改变。好吧,用“classpath'com.google.gms:googleservices:4.1.0”替换这一行似乎已经解决了这个问题