当我编写此语法以添加picasso库时发生错误。
(在OS独立路径中找到了多个文件' 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')
}
如何修复以下错误?请帮帮我!!
答案 0 :(得分:0)
试试这个
compile 'com.squareup.picasso:picasso:2.5.0'