2017-11-15 2 views
-1

이 사진 enter image description here안드로이드 3.0 빌드 Gradle을 오류

이 그냥 안드로이드 스튜디오 3.0 설치 app.build iv'e입니다이 오류를보고이 이 무엇을 잘 모릅니다 사진의 오류 제발 더 이상 나를 도와주세요

'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/172.217.24.14] dl.google.com:443에 연결 연결 시간이 초과되었습니다 :

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' 
} 
+0

답을 입력하면 오류 메시지 –

+0

안녕하세요를 추가하십시오. plz 동의합니다. –

+0

코드를 변경하는 데 이미 필요합니다. –

답변

2

앱 빌드에서 선 아래 추가하십시오 연결 그라디언트 파일입니다.

android { 
     compileSdkVersion 26 
     flavorDimensions "default" 
    } 
+0

나를 위해 일한 그림을 참조하십시오. 덕분에 – Aks4125

+0

그것은 나를 위해 일하지 않을거야 –

+0

plz 청소 프로젝트 flavorDimensions 추가 "기본"이 줄은 내가 당신을 제안합니다. 프로젝트를 정리하고 한 번 시도하십시오. –

관련 문제