Picasso与NoClassDefFoundError崩溃

时间:2016-01-20 10:57:32

标签: java android picasso

我现在已经使用毕加索很长一段时间了。我今天遇到了一个奇怪的问题。

我只是使用此代码

将图片网址加载到imageview
Picasso.with(_context)
.load(groupDeatils.getThumbnail()).transform(new CircleTransform())
.into(group_pic);

这是我的gradle构建,

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.km.contribill"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
    }
    dexOptions {
        incremental true
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:design:23.1.1'
    compile 'com.facebook.android:facebook-android-sdk:4.1.0'
    compile 'com.google.android.gms:play-services-auth:8.3.0'
    compile 'com.google.android.gms:play-services:8.3.0'
    compile 'com.shamanland:fab:0.0.8'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile project(':library')
}

在我运行项目并转到页面后构建项目后,我收到此错误,

  

java.lang.NoClassDefFoundError:com.squareup.picasso.Utils

任何帮助都将不胜感激。

0 个答案:

没有答案