question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

compile 'com.facebook.fresco:fresco:0.9.0+' but have com.android.build.api.transform.TransformException:

See original GitHub issue

my project always run is ok,but i do compile ‘com.facebook.fresco:fresco:0.9.0+’,i project have these problem

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Program Files\Java\jdk1.8.0_73\bin\java.exe’’ finished with non-zero exit value 2

i google why,get answer is add

defaultConfig { 
    multiDexEnabled true 
}

but,i add multiDexEnabled true after ,get have erro

Error:Execution failed for task ‘:app-dx:transformClassesWithJarMergingForDebug’.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/nineoldandroids/animation/Animator$AnimatorListener.class

this is my build.gradle

apply plugin: 'com.android.application'
apply plugin: 'maven'
android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com.baimes.dx"
        minSdkVersion 17
        targetSdkVersion 23
        versionCode 117
        versionName "DX_V1.1.7_20160328"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    packagingOptions {
        exclude 'META-INF/DEPENDENCIES.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/dependencies.txt'
        exclude 'META-INF/LGPL2.1'
    }
    dexOptions {
        incremental true
    }
}


dependencies {
    provided fileTree(include: ['*.jar'], dir: 'libs')
    //    testCompile 'junit:junit:4.12'
    compile project(':frontend-base')
    compile 'com.bigkoo:convenientbanner:2.0.5'
    compile 'com.ToxicBakery.viewpager.transforms:view-pager-transforms:1.2.32@aar'
    compile 'com.android.support:recyclerview-v7:23.+'
    compile 'jp.wasabeef:recyclerview-animators:2.2.1'
    compile 'com.facebook.fresco:fresco:0.9.0+'


}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

0reactions
tyronencommented, May 23, 2016

@eidk is correct, you need to call Fresco.initialize.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - com.android.build.api.transform.TransformException
So just try adding exclude group: "com.google.android.gms" to all the libraries one by one and try compile. When project is compiled, ...
Read more >
Getting Started - Facebook SDK for Android - Documentation
This documentation explains how to get started integrating your Android app with Facebook by using the Facebook SDK for Android. The current version...
Read more >
How to fix "Execution failed for task ':app ... - GeeksforGeeks
Go to SDK manager, and install any updates to your dependencies. Make sure that your build.gradle file shows the latest version. To get...
Read more >
Build Tools 24.0.3 causes com.android.jack.api.v01 ...
TransformException : com.android.jack.api.v01.CompilationException: Failed to compile * Try: Run with --stacktrace option to get the stack trace.
Read more >
When gradle fails or Android's own version of the dependency ...
The app is experiencing a number of ANRs recently and we've managed to trace the ... RuntimeException: com.android.build.api.transform.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found