首页 > 解决方案 > 发现多个文件的操作系统独立路径为“okhttp3/internal/publicsuffix/publicsuffixes.gz”

问题描述

添加后:

implementation (group: 'ir.databeen.sdk', name: 'databeenlib', version: '1.0.2', ext: 'aar')

当我想生成我的应用程序时出现此错误:

发现多个文件的操作系统独立路径为“okhttp3/internal/publicsuffix/publicsuffixes.gz”

这是我的 Gradle 依赖项:

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.cedarmaps:CedarMapsSDK:3.1.2'
implementation 'co.ronash.android:pushe-base:1.4.1'
implementation 'ir.tapsell.sdk:tapsell-sdk-android:4.0.3'
implementation 'com.android.support:percent:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:2.0.0-alpha2'
implementation (group: 'ir.databeen.sdk', name: 'databeenlib', version: '1.0.2', ext: 'aar')
implementation 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
testImplementation 'junit:junit:4.12'}

我尝试使用:

implementation (group: 'ir.databeen.sdk', name: 'databeenlib', version: '1.0.2', ext: 'aar'){
    exclude group: 'com.squareup.okio'
    exclude group:'com.squareup.okhttp'
}

但错误仍然存​​在。

标签: android-studioandroid-gradle-plugin

解决方案


推荐阅读