第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

應(yīng)用(22.0.0)和測試應(yīng)用(21.0.3)的已解決版本不同

應(yīng)用(22.0.0)和測試應(yīng)用(21.0.3)的已解決版本不同

回首憶惘然 2019-12-10 13:08:41
升級到API 22并支持lib版本22后,我收到以下警告:警告:與依賴項(xiàng)“ com.android.support:support-annotations”沖突。應(yīng)用(22.0.0)和測試應(yīng)用(21.0.3)的已解決版本不同。Gradle本身更寬容,但Android Studio卻不那么多。我沒有用21.0.3聲明的依賴項(xiàng)...是使用21.0.3的依賴庫之一,Google忘記用其余的批處理更新它嗎?我build.gradle的臨時演員被削減了android {  compileSdkVersion 22  buildToolsVersion '22'  defaultConfig {    applicationId "com.REDACTED.android"    minSdkVersion 14    targetSdkVersion 22    renderscriptSupportModeEnabled true    versionName '1.0.0'    versionCode 100  }  buildTypes {    release {      minifyEnabled true      zipAlignEnabled true      signingConfig signingConfigs.release    }    debug {      minifyEnabled false      zipAlignEnabled true      signingConfig signingConfigs.debug    }  }  dependencies {    provided 'org.projectlombok:lombok:1.16.2'    googleCompile 'com.google.android.gms:play-services-base:6.5.87'    compile 'com.android.support:support-v4:22.0.0'    compile 'com.android.support:appcompat-v7:22.0.0'    compile 'com.android.support:support-v13:22.0.0'    compile 'com.android.support:cardview-v7:22.0.0'    compile 'com.android.support:palette-v7:22.0.0'    compile 'com.android.support:support-annotations:22.0.0'    compile 'com.github.chrisbanes.photoview:library:1.2.3'    compile 'org.apache.commons:commons-lang3:3.3.2'    compile 'commons-io:commons-io:2.4'    compile 'commons-codec:commons-codec:1.10'    compile 'com.jakewharton:butterknife:6.1.0'    compile 'com.jakewharton:disklrucache:2.0.2'    compile 'com.squareup:otto:1.3.6'    compile 'com.squareup.picasso:picasso:2.5.0'    compile 'com.squareup.retrofit:retrofit:1.9.0'    compile 'com.squareup.okhttp:okhttp:2.2.0'  }
查看完整描述

3 回答

?
躍然一笑

TA貢獻(xiàn)1826條經(jīng)驗(yàn) 獲得超6個贊

處理此類問題時的第1步是熟悉命令行Gradle。


步驟2是運(yùn)行Gradle依賴關(guān)系報(bào)告(例如,gradle -q app:dependencies從項(xiàng)目根目錄開始)。這將提供ASCII樹,如問題的更新中所示,它應(yīng)有助于您確定導(dǎo)致沖突的工件版本的原因。


步驟#3是確定需要替換的內(nèi)容。您選擇僅替換沖突(support-annotations)。就我個人而言,我會選擇錯誤版本樹(recyclerview-v7)的根,盡管就我所知,在這種情況下,這可能不是最佳的選擇。


步驟4是添加exclude指令以阻止您在步驟3中選擇的內(nèi)容:


androidTestCompile ('com.android.support.test.espresso:espresso-contrib:2.0') {

    exclude module: 'support-annotations'

}

步驟#5是測試此更改的內(nèi)容。您正在說的是espresso-contrib 必須處理的22.0.0版本support-annotations。那可能行得通。那可能不會。這取決于沖突的向后兼容性。在這種情況下,support-annotations應(yīng)該對此做得很好。


第6步是飲用您選擇的飲料,一種適合您所在地區(qū)和一天中不同時間的飲料。



查看完整回答
反對 回復(fù) 2019-12-11
  • 3 回答
  • 0 關(guān)注
  • 452 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號