Maybe a bug
See original GitHub issuebuild.gradle:
dependencies{ compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support.constraint:constraint-layout:1.0.2' testCompile 'junit:junit:4.12' compile 'com.facebook.fresco:fresco:1.0.1' compile 'com.facebook.fresco:imagepipeline-okhttp3:+' compile 'com.facebook.fresco:animated-gif:1.3.0' }
error:
Caused by: java.lang.NoClassDefFoundError: com.facebook.drawee.view.DraweeHolder at com.facebook.drawee.view.DraweeView.init(DraweeView.java:78) at com.facebook.drawee.view.DraweeView.<init>(DraweeView.java:58) at com.facebook.drawee.view.GenericDraweeView.<init>(GenericDraweeView.java:42) at com.facebook.drawee.view.SimpleDraweeView.<init>(SimpleDraweeView.java:62)
react-native(0.43.3) integration is the 1.0.1 version, so when the original use of the GIF model may have this problem
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:11 (5 by maintainers)
Top GitHub Comments
Only set up so that it can be used normally:
compile 'com.facebook.fresco:fresco:1.3.0' compile 'com.facebook.fresco:animated-gif:1.3.0'
Yeah, please make sure that React Native and Fresco have the same version to keep everything in sync.