androidx support library not initializing
See original GitHub issueDescription
Fresco.initilialize(this)
crashes the app. This appears to be down to a android.support.v4 library not being found. I am using the new support version of androidx. Was wondering if there is a solution to this? This is the error log:
08-23 17:27:36.851 2961-2961/com.eisterhues_media_2.ta4 E/AndroidRuntime: FATAL EXCEPTION: main Process: com.eisterhues_media_2.ta4, PID: 2961 java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/util/Pools$SynchronizedPool; at com.facebook.imagepipeline.core.ImagePipelineFactory.buildPlatformDecoder(ImagePipelineFactory.java:318) at com.facebook.imagepipeline.core.ImagePipelineFactory.getPlatformDecoder(ImagePipelineFactory.java:333) at com.facebook.imagepipeline.core.ImagePipelineFactory.getPlatformBitmapFactory(ImagePipelineFactory.java:300) at com.facebook.imagepipeline.core.ImagePipelineFactory.getAnimatedFactory(ImagePipelineFactory.java:143) at com.facebook.imagepipeline.core.ImagePipelineFactory.getImageDecoder(ImagePipelineFactory.java:202) at com.facebook.imagepipeline.core.ImagePipelineFactory.getProducerFactory(ImagePipelineFactory.java:349) at com.facebook.imagepipeline.core.ImagePipelineFactory.getProducerSequenceFactory(ImagePipelineFactory.java:378) at com.facebook.imagepipeline.core.ImagePipelineFactory.getImagePipeline(ImagePipelineFactory.java:259) at com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier.<init>(PipelineDraweeControllerBuilderSupplier.java:51) at com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier.<init>(PipelineDraweeControllerBuilderSupplier.java:42) at com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier.<init>(PipelineDraweeControllerBuilderSupplier.java:35) at com.facebook.drawee.backends.pipeline.Fresco.initializeDrawee(Fresco.java:79) at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:72) at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:44)
Reproduction
[FILL THIS OUT: How can we reproduce the bug? Provide URLs to relevant images if possible, or a sample project.]
Additional Information
- Fresco version: 1.10.0
- Platform version: Target SDK Version 28
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (3 by maintainers)
Top GitHub Comments
I added
androidx.legacy:legacy-support-v13:1.0.0
andandroidx.legacy:legacy-support-v4:1.0.0
as dependencies and this fixed my issueFresco 2.0.0 is now available that requires AndroidX: https://github.com/facebook/fresco/releases/tag/v2.0.0
For non-AndroidX builds, please continue using v1.14.2