【发布时间】:2017-11-15 16:00:42
【问题描述】:
这是刚刚安装了 android studio 3.0 的 app.build 这是图片中的错误 不知道该怎么办了,请帮帮我
无法解析 ':app@debugUnitTest/compileClasspath' 的依赖关系:无法解析 junit:junit:4.12。
无法解析 junit:junit:4.12。 要求: 项目:应用程序
无法解析 junit:junit:4.12。 无法获取资源“https://dl.google.com/dl/android/maven2/junit/junit/4.12/junit-4.12.pom”。 无法获取“https://dl.google.com/dl/android/maven2/junit/junit/4.12/junit-4.12.pom”。 连接到 dl.google.com:443 [dl.google.com/172.217.24.14] 失败:连接超时:连接 连接超时:连接
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.mahilum.meebot"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}
【问题讨论】:
-
请添加错误信息
-
嗨,如果答案对你有用,请接受它。
-
没有需要更改的代码,请看图