Gradle DSL method not found: 'testimplementation()'
Run Code Online (Sandbox Code Playgroud)
项目“我的项目”可能使用不包含该方法的 Gradle 版本。构建文件可能缺少 Gradle 插件。应用 gradle 插件
我已经尝试过了
摇篮文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.techknocorp.a.metturcable"
minSdkVersion 14
targetSdkVersion 26
versionCode 532016
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testimplementation 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
androidTestImplementation 'com.android.support.test:runner:1.1.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-
core:3.1.1'
implementation files('libs/opencsv-2.3.jar')
}
Run Code Online (Sandbox Code Playgroud)
顶级 Gradle // …