找不到参数[com.android.support.test.espresso:espresso-core:2.2.2的方法androidTestcompile()

时间:2018-09-01 19:15:24

标签: android

在android studio中清理项目时出现此错误:

  

在类型为org.gradle.api.internal的对象上找不到参数[com.android.support.test.espresso:espresso-core:2.2.2,build_617cugq1kph89i9g65xvxcp1i $ _run_closure3 $ _closure7 @ c93fd3]的方法androidTestcompile()。 .artifacts.dsl.dependencies.DefaultDependencyHandler。

Builde.gradle:

        buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
repositories {
    jcenter()
}


dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    androidTestcompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    } )

    implementation 'com.android.support:appcompat-v7:25.1.0'
    implementation 'com.android.support:design:25.1.0'
    implementation 'com.android.support:recyclerview-v7:25.1.0'
    implementation 'com.google.android.gms:play-services-location:9.6.1'
    implementation 'com.google.android.gms:play-services-maps:9.6.1'
    implementation 'com.google.firebase:firebase-core:9.6.1'
    implementation 'com.google.firebase:firebase-database:9.6.1'
    implementation 'com.google.firebase:firebase-auth:9.6.1'
    implementation 'com.google.firebase:firebase-messaging:9.6.1'
    implementation 'com.facebook.android:account-kit-sdk:4.11.0'
    implementation 'com.google.code.findbugs:jsr305:2.0.1'
    implementation 'com.google.android.gms:play-services-ads:9.6.1'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    testimplementation 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'

0 个答案:

没有答案