Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

NoClassDefFoundError #66

Open
jonahollman opened this issue Jan 9, 2019 · 4 comments
Open

NoClassDefFoundError #66

jonahollman opened this issue Jan 9, 2019 · 4 comments

Comments

@jonahollman
Copy link

When attempting to show a tooltip, I get this error:

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/widget/NestedScrollView

Here is my code:

toolTip = ViewTooltip
     .on(holder.flareifiedIcon)
     .autoHide(false, 1000)
     .clickToHide(true)
     .corner(16)
     .position(ViewTooltip.Position.BOTTOM)
     .customView(tooltipView)
     .onDisplay {
         toolTipShowing = true
     }
     .onHide {
         if (tooltipView.parent != null) {
             (tooltipView.parent as ViewGroup).removeView(tooltipView)
             toolTipShowing = false
         } 
     }
toolTip!!.show()
@pavel-vorobyev
Copy link

The same error

@mdvarga
Copy link

mdvarga commented Jan 29, 2019

Ditto:

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/widget/NestedScrollView;
        at com.github.florent37.viewtooltip.ViewTooltip.findScrollParent(ViewTooltip.java:95)
        at com.github.florent37.viewtooltip.ViewTooltip.<init>(ViewTooltip.java:46)
        at com.github.florent37.viewtooltip.ViewTooltip.on(ViewTooltip.java:77)

@mdvarga
Copy link

mdvarga commented Jan 29, 2019

Looks like this issue is related to this library using AndroidX for version 1.2.x - and the project that I'm working on hasn't migrated to use AndroidX yet.

I reverted to use 1.1.8 (i.e. pre-AndroidX) and the library is working fine now.

@PankajS24
Copy link

What if we want to use it with Android X?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants