錯(cuò)誤:(23,17)無(wú)法解決:junit:junit:4.12為什么每次我在Android Studio中創(chuàng)建一個(gè)新項(xiàng)目時(shí),它總是會(huì)出現(xiàn):錯(cuò)誤:(23,17)無(wú)法解決:junit:junit:4.12?當(dāng)我刪除testCompile 'junit:junit:4.12'依賴(lài)項(xiàng)時(shí),它不再是一個(gè)問(wèn)題。的build.gradleapply plugin: 'com.android.application'android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.okedroid.myapplication"
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}}dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'}
添加回答
舉報(bào)
0/150
提交
取消