2017-02-16 57 views
3

錯誤##,這是我的build.gradle應用模塊##和顯示的gradle上建設

apply plugin: 'com.android.application' 

    android { 
     compileSdkVersion 23 
     buildToolsVersion "23.0.3" 
     defaultConfig { 
      applicationId "com.mytech.wv" 
      minSdkVersion 19 
      targetSdkVersion 23 
      versionCode 1 
      versionName "1.0" 
      testInstrumentationRunner 


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

    dependencies { 
     compile fileTree(include: ['*.jar'], dir: 'libs') 
     androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
      exclude group: 'com.android.support', module: 'support-annotations' 
     }) 
     compile 'com.android.support:appcompat-v7:23.4.0' 
     compile 'com.android.support:design:23.4.0' 
    } 

** ---------- **這是錯誤後10-20分鐘gradle這個大樓(androiddebugCompileTest)****

Error:Error:Failed to resolve: junit:junit:4.12 
    Error:Error:Failed to resolve: javax.inject:javax.inject:1 
    Error:Error:Failed to resolve: javax.annotation:javax.annotation-api:1.2 
    Error:Error:Failed to resolve: com.google.code.findbugs:jsr305:2.0.1 
    Error:Error:Failed to resolve: org.hamcrest:hamcrest-library:1.3 
    Error:Error:Failed to resolve: org.hamcrest:hamcrest-integration:1.3 
    Error:Error:Failed to resolve: com.squareup:javawriter:2.1.1 
+0

看到這個鏈接相同作爲您的問題http://stackoverflow.com/questions/32519219/error23-17-failed-to-resolve-junitjunit4-12 –

回答

0
Error:Error:Failed to resolve: junit:junit:4.12 

評論這和重建即時得到。這不是很有必要。你在網上建立?