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.

androidx support library not initializing

See original GitHub issue

Description

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:closed
  • Created 5 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
thomashostycundellcommented, Dec 19, 2018

I added androidx.legacy:legacy-support-v13:1.0.0 and androidx.legacy:legacy-support-v4:1.0.0 as dependencies and this fixed my issue

0reactions
oprisnikcommented, Jul 3, 2019

Fresco 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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android design support library for API 28 (P) not working
@Talha Try from menu Build > Clear Project then Build > Make Project first, sometimes this is sufficient, if not then do Invalidate...
Read more >
Migrate to AndroidX | Android Developers
Before you migrate, bring your app up to date. We recommend updating your project to use the final version of the support library:...
Read more >
What to do when the Creative Cloud Libraries panel doesn't load
Fix error "Something went wrong initializing Creative Cloud Libraries".
Read more >
Troubleshooting - Helpshift for Android
2.0, you would need to add dependencies for android support libraries equal to or higher than v23.2.0. Push notifications. In case the app...
Read more >
PagerTabStrip not working with com.android.support library ...
I've upgraded my project to target sdk version 24 and therefore upgraded my support libraries. Once doing this my PagerTabStrip disappears.
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