【问题标题】:implementation error - picasso:2.71828 (More than one file was found with OS independent path)实现错误 - picasso:2.71828(发现多个文件具有独立于操作系统的路径)
【发布时间】:2018-11-19 03:22:07
【问题描述】:

当我编写此语法以添加毕加索库时发生错误。

(发现多个文件具有独立于操作系统的路径 'okhttp3/internal/publicsuffix/publicsuffixes.gz')

我的android gradle如下!!

android {
compileSdkVersion 27
defaultConfig {
    applicationId "com.example.i203_153.smarthome"
    minSdkVersion 24
    targetSdkVersion 27
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
productFlavors {
}
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation files('libs/jackson-annotations-2.1.2.jar')
    implementation files('libs/com.fasterxml.jackson.core.jar')
    implementation files('libs/com.fasterxml.jackson.databind.jar')
}

如何解决以下错误?请帮帮我!!

【问题讨论】:

    标签: android gradle picasso okhttp3


    【解决方案1】:

    试试这个

    compile 'com.squareup.picasso:picasso:2.5.0'
    

    【讨论】:

    • 感谢您的评论!我试过了,但是在使用 picasso 2.5.0 时,出现了以下警告。 【设置aircraft_mode_on已经从android.provider.Settings.System移到android.provider.Settings.Global,返回只读值。】我该怎么办??
    • Picasso.with(getContext()).load(img_path).into(profile);它在我的项目中正常工作
    猜你喜欢
    • 2020-02-02
    • 2018-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多