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.

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/util/Pools$SynchronizedPool;

See original GitHub issue

This library was working fine with 1.9.0.

I updated to 2.0.0 and got this error.

I downgraded to 1.9.0 or even tested with 1.13.0. Worked fine.

So there is some issue with 2.0.0 that on this line App got crashed

Fresco.initialize(this);

For more information. I also tried these solution which didnot worked.

implementation 'com.android.support:support-compat:28.0.0'

Also adding this line in gradle.properties neither worked.

android.enableJetifier = false

with following logs output. Thanks

--------- beginning of crash 06-30 12:16:38.778 5360-5360/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.my.app, PID: 5360 java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/util/Pools$SynchronizedPool; at com.facebook.imagepipeline.platform.PlatformDecoderFactory.buildPlatformDecoder(PlatformDecoderFactory.java:34) at com.facebook.imagepipeline.core.ImagePipelineFactory.getPlatformDecoder(ImagePipelineFactory.java:304) at com.facebook.imagepipeline.core.ImagePipelineFactory.getPlatformBitmapFactory(ImagePipelineFactory.java:296) at com.facebook.imagepipeline.core.ImagePipelineFactory.getAnimatedFactory(ImagePipelineFactory.java:159) at com.facebook.imagepipeline.core.ImagePipelineFactory.getImageDecoder(ImagePipelineFactory.java:219) at com.facebook.imagepipeline.core.ImagePipelineFactory.getProducerFactory(ImagePipelineFactory.java:319) at com.facebook.imagepipeline.core.ImagePipelineFactory.getProducerSequenceFactory(ImagePipelineFactory.java:350) at com.facebook.imagepipeline.core.ImagePipelineFactory.getImagePipeline(ImagePipelineFactory.java:276) at com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier.<init>(PipelineDraweeControllerBuilderSupplier.java:53) at com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier.<init>(PipelineDraweeControllerBuilderSupplier.java:44) at com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier.<init>(PipelineDraweeControllerBuilderSupplier.java:37) at com.facebook.drawee.backends.pipeline.Fresco.initializeDrawee(Fresco.java:96) at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:85) at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:38) at com.my.app.activities.MainActivity.onCreate(MainActivity.java:77) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.core.util.Pools$SynchronizedPool" on path: DexPathList[[zip file "/data/app/com.my.app-2/base.apk"],nativeLibraryDirectories=[/data/app/com.my.app-2/lib/x86, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) at com.facebook.imagepipeline.platform.PlatformDecoderFactory.buildPlatformDecoder(PlatformDecoderFactory.java:34)  at com.facebook.imagepipeline.core.ImagePipelineFactory.getPlatformDecoder(ImagePipelineFactory.java:304)  at com.facebook.imagepipeline.core.ImagePipelineFactory.getPlatformBitmapFactory(ImagePipelineFactory.java:296)  at com.facebook.imagepipeline.core.ImagePipelineFactory.getAnimatedFactory(ImagePipelineFactory.java:159)  at com.facebook.imagepipeline.core.ImagePipelineFactory.getImageDecoder(ImagePipelineFactory.java:219)  at com.facebook.imagepipeline.core.ImagePipelineFactory.getProducerFactory(ImagePipelineFactory.java:319)  at com.facebook.imagepipeline.core.ImagePipelineFactory.getProducerSequenceFactory(ImagePipelineFactory.java:350)  at com.facebook.imagepipeline.core.ImagePipelineFactory.getImagePipeline(ImagePipelineFactory.java:276)  at com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier.<init>(PipelineDraweeControllerBuilderSupplier.java:53)  at com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier.<init>(PipelineDraweeControllerBuilderSupplier.java:44)  at com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier.<init>(PipelineDraweeControllerBuilderSupplier.java:37)  at com.facebook.drawee.backends.pipeline.Fresco.initializeDrawee(Fresco.java:96)  at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:85)  at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:38)  at com.my.app.activities.MainActivity.onCreate(MainActivity.java:77)  at android.app.Activity.performCreate(Activity.java:5990)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)  at android.app.ActivityThread.access$800(ActivityThread.java:151)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:135)  at android.app.ActivityThread.main(ActivityThread.java:5254)  at java.lang.reflect.Method.invoke(Native Method)  at java.lang.reflect.Method.invoke(Method.java:372)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)  Suppressed: java.lang.ClassNotFoundException: androidx.core.util.Pools$SynchronizedPool at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:504) ... 29 more Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

Issue Analytics

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

github_iconTop GitHub Comments

11reactions
ravindranpanducommented, Jul 11, 2019

Hey Guys,

I recently migrated my fresco version from 1.9.0 to 2.0.0, my app is on android P doesn’t have Android X support libraries, so i was facing the same issue, migrating to android X support libraries works like a charm, but if for some reason you can’t move to Android X use v1.13.0 it works fine, i tried with v1.14.2 like @oprisnik said for some reason it didn’t work for me.

Hope this will help someone 😃

implementation 'com.facebook.fresco:fresco:1.13.0' implementation 'com.facebook.fresco:animated-gif:1.13.0'

10reactions
oprisnikcommented, Jul 1, 2019

Version 2.0 requires AndroidX support libraries. If your app is still using the legacy support libs, please use 1.14.2 until you’ve upgraded. We’ll post the changelog for 2.0.0 soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed resolution of: Landroidx/core/view/MenuHost; - Stack ...
NoClassDefFoundError : Failed resolution of: Landroidx/core/view/MenuHost; at java.lang.Class.newInstance(Native Method) at android.app.
Read more >
java.lang.NoClassDefFoundError: Failed resolution ... - GitHub
Describe the bug Below exception is thrown when I init the trust kit for android using below line TrustKit.
Read more >
java.lang.NoClassDefFoundError: Failed resolution of: Lcom ...
After integrating SDK , I am getting the error while initializing orchestrator and error is below :- java.lang.NoClassDefFoundError: Failed ...
Read more >
java.lang.NoClassDefFoundError Failed resolution of: Lbgyx
Fatal Exception: java.lang.NoClassDefFoundError: Failed resolution of: Lbgyx;. at com.google.android.gms.ads.internal.config.n.d(n.java).
Read more >
Java.Lang.NoClassDefFoundError: 'Failed resolution of: Ljava ...
Java.Lang.NoClassDefFoundError: 'Failed resolution of: Ljava/awt/Color;'. i use a android native binding library at it was compiled successfully ...
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