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

时间:2018-08-30 07:24:44

标签: java firebase android-studio

我收到此错误,因为我从本地文件夹中删除了项目,并将项目从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'

0 个答案:

没有答案