久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

與依賴項(xiàng)“com.android.support:support-annotations"沖

Conflict with dependency #39;com.android.support:support-annotations#39;. Resolved versions for app (23.1.0) and test app (23.0.1) differ(與依賴項(xiàng)“com.android.support:support-annotations沖突.應(yīng)用程序 (23.1.0) 和測試應(yīng)用程序
本文介紹了與依賴項(xiàng)“com.android.support:support-annotations"沖突.應(yīng)用程序 (23.1.0) 和測試應(yīng)用程序 (23.0.1) 的已解決版本不同的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

When building I get the following error:

Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (23.1.0) and test app (23.0.1) differ.

These are my gradle dependencies

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:support-v4:23.1.0'
    compile 'com.android.support:appcompat-v7:23.1.0'
    compile 'com.android.support:design:23.1.0'
    compile 'com.android.support:cardview-v7:23.1.0'
    compile 'com.android.support:recyclerview-v7:23.1.0'
    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'com.squareup.okhttp:okhttp:2.4.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.jakewharton:butterknife:7.0.1'
    compile 'com.squareup:otto:1.3.8'
    compile 'com.snappydb:snappydb-lib:0.5.2'
    compile 'com.esotericsoftware.kryo:kryo:2.24.0'
    compile 'com.google.dagger:dagger:2.0.1'
    apt 'com.google.dagger:dagger-compiler:2.0.1'
    compile 'javax.annotation:javax.annotation-api:1.2'
    compile 'io.reactivex:rxandroid:1.0.1'
    compile 'io.reactivex:rxjava:1.0.14'
    compile 'com.google.android.gms:play-services-location:8.1.0'
    compile 'com.google.android.gms:play-services-gcm:8.1.0'
    compile 'org.apache.commons:commons-lang3:3.4'
    testCompile 'junit:junit:4.12'
    testCompile 'org.hamcrest:hamcrest-library:1.3'
    testCompile 'org.mockito:mockito-core:1.10.19'
    androidTestCompile 'com.android.support.test:runner:0.4'
    androidTestCompile 'com.android.support.test:rules:0.4'
    androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
    androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.2.1'
    androidTestCompile 'com.android.support.test.espresso:espresso-web:2.2.1'
    debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
    releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
}

How can I fix this?

解決方案

You can force the annotation library in your test using:

androidTestCompile 'com.android.support:support-annotations:23.1.0'

Something like this:

  // Force usage of support annotations in the test app, since it is internally used by the runner module.
  androidTestCompile 'com.android.support:support-annotations:23.1.0'
  androidTestCompile 'com.android.support.test:runner:0.4.1'
  androidTestCompile 'com.android.support.test:rules:0.4.1'
  androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
  androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.2.1'
  androidTestCompile 'com.android.support.test.espresso:espresso-web:2.2.1'

Another solution is to use this in the top level file:

configurations.all {
    resolutionStrategy.force 'com.android.support:support-annotations:23.1.0'
}

這篇關(guān)于與依賴項(xiàng)“com.android.support:support-annotations"沖突.應(yīng)用程序 (23.1.0) 和測試應(yīng)用程序 (23.0.1) 的已解決版本不同的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現(xiàn) IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當(dāng)前風(fēng)味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復(fù)“意外元素lt;查詢gt;在“清單中找到錯(cuò)誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風(fēng)味庫的多風(fēng)味應(yīng)用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運(yùn)行時(shí)有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 99日韩 | 亚洲一区亚洲二区 | 国产日韩欧美中文 | 日本一区二区三区精品视频 | 久久青青| 97精品超碰一区二区三区 | 99精品免费久久久久久久久日本 | 免费久久网站 | 伊人欧美视频 | 特黄特色大片免费视频观看 | 欧美理伦片在线播放 | 亚洲第一成年免费网站 | 精品久久国产 | .国产精品成人自产拍在线观看6 | 欧美久久不卡 | 91色视频在线观看 | 人人干免费 | 2019天天操 | 在线一区二区三区 | 国产馆 | 久久av.com| 视频一区二区在线观看 | 欧美精品video| 成人在线视频网址 | 国产精品久久久久一区二区 | 国产亚洲一区精品 | 日韩精品免费视频 | 免费同性女女aaa免费网站 | 欧美午夜影院 | 九色国产| av国产精品毛片一区二区小说 | 欧美激情精品久久久久久 | 中文字幕在线看 | 日韩av在线一区二区三区 | 国产一区二区免费电影 | 欧美色综合 | 中文字幕一区在线观看视频 | 国产美女黄色片 | 国产精品久久久久久一区二区三区 | 97精品一区二区 | 午夜免费av|