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

commons-logging 定義了與 Android Studio 更新后 Android

commons-logging defines classes that conflict with classes now provided by Android after Android Studio Update(commons-logging 定義了與 Android Studio 更新后 Android 現(xiàn)在提供的類沖突的類) - IT屋-程序員軟件開發(fā)技術分
本文介紹了commons-logging 定義了與 Android Studio 更新后 Android 現(xiàn)在提供的類沖突的類的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我已將 Android Studio 更新到版本 3,現(xiàn)在似乎無法編譯我之前編譯的項目而沒有錯誤.

I have updated Android Studio to version 3 and now seems unable to compile my project previously compiled without errors.

錯誤信息如下

Error:Error: commons-logging 定義的類與現(xiàn)在由 Android 提供的類.解決方案包括尋找更新的沒有相同問題的版本或替代庫(例如,對于 httpclient 使用 HttpUrlConnection 或 okhttp 代替),或使用 jarjar 之類的東西重新打包庫.[重復平臺類]

Error:Error: commons-logging defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]

依賴關系是

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:27.0.0'
    compile 'com.android.support:design:27.0.0'
    compile 'com.google.api-client:google-api-client-android:1.23.0' exclude module: 'httpclient'
    compile 'com.google.http-client:google-http-client-gson:1.23.0' exclude module: 'httpclient'
    compile 'com.google.firebase:firebase-core:11.4.2'
}

錯誤似乎是由

compile 'com.google.api-client:google-api-client-android:1.23.0' exclude module: 'httpclient'
compile 'com.google.http-client:google-http-client-gson:1.23.0' exclude module: 'httpclient'

我已經(jīng)在使用 exclude module: 'httpclient'那么為什么它不編譯?這是 Android Studio 3 的錯誤和或包含 com.android.tools.build:gradle:3.0.0 插件還是我遺漏了什么?與以前的版本編譯完全一樣的項目沒問題.

I already use exclude module: 'httpclient' So why It doesn't compile? Is this a bug of Android Studio 3 andor included com.android.tools.build:gradle:3.0.0 plugin or I'm missing something? With the previous version no problem to compile exactly the same project.

推薦答案

添加到應用模塊中的 build.gradle

Add to build.gradle located in app module

configurations {
    all {
        exclude module: 'httpclient'
    }
}

這篇關于commons-logging 定義了與 Android Studio 更新后 Android 現(xiàn)在提供的類沖突的類的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權益,請聯(liá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 中獲取當前風味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復“意外元素lt;查詢gt;在“清單中找到錯誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風味庫的多風味應用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運行時有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 亚洲欧美国产精品久久 | 欧美成人精品一区二区男人看 | 网址黄 | 中文字幕日韩av | 女同av亚洲女人天堂 | 91久久精品国产免费一区 | 欧美日韩久久久 | 亚洲福利在线视频 | 国产精品大片 | 亚洲狠狠| 一区视频| 亚洲成av人片在线观看无码 | 久久国产香蕉 | 中文字幕日韩欧美 | 国产视频久久久 | 欧美一区二区视频 | 草久久久 | 欧美日韩美女 | 在线第一页 | 欧美电影在线 | 久久精品免费一区二区三 | 91精品国产综合久久久久蜜臀 | 精品国产一区二区久久 | 久久精品国产久精国产 | 日本a视频 | 亚洲综合色视频在线观看 | 国产精品久久久久国产a级 欧美日韩国产免费 | 国产乱肥老妇国产一区二 | 国产www. | aaaaa毛片 | 亚洲一页| 国产一区二区三区视频 | 欧美性生活网 | 国产成人精品网站 | 青草青草久热精品视频在线观看 | 中文字幕在线二区 | 成人国产精品久久久 | 日韩精品成人一区二区三区视频 | 国产精品国产成人国产三级 | 亚洲欧洲中文 | 日本三级电影在线观看视频 |