compile 'com.facebook.fresco:fresco:0.9.0+' but have com.android.build.api.transform.TransformException:
See original GitHub issuemy 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:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have a look here : http://stackoverflow.com/questions/36724100/error-inflating-class-com-facebook-drawee-view-simpledraweeview
and here : http://frescolib.org/docs/configure-image-pipeline.html#main_wrap :
Fresco.initialize(context);
@eidk is correct, you need to call Fresco.initialize.