2016-08-26 59 views
0

我在我的SDK中安裝了最新的支持庫。 文件的gradleandroid studio中的測試支持庫沒有編譯

 defaultConfig { 
      applicationId "com.example.win.dat_2" 
      minSdkVersion 19 
      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']) 
     compile 'com.android.support:appcompat-v7:23.1.1' 
     androidTestCompile('com.android.support.test.espresso:espres‌​so-core:2.2.2', { 
exclude group: 'com.android.support', module: 'support-annotations' }) 
    } 
+0

依賴性{ 編譯文件樹(DIR: '庫',包括:[ '的* .jar']) 編譯'com.android.support:appcompat-v7:23.1.1' androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',{ exclude group:'com.android.support ',module:'support-annotations' }) } –

+0

當您嘗試構建項目時,LogCat會顯示什麼錯誤?另外,請粘貼您的整個'gradle'文件。你也想將依賴部分添加到帖子中,而不是作爲評論。 – ishmaelMakitla

+0

你能更新gradle文件嗎? – ViramP

回答

0

在應用此的gradle添加defaultConfig

multiDexEnabled =真