faruktoptas / FancyShowCaseView

An easy-to-use customisable show case view with circular reveal animation.
Apache License 2.0
1.96k stars 275 forks source link

i get this error when include library #151

Closed tarek13 closed 5 years ago

tarek13 commented 5 years ago

this is error java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/content/ContextCompat;

faruktoptas commented 5 years ago

Can you add the line below to app/gradle dependencies?

implementation "androidx.appcompat:appcompat:1.0.2"

tarek13 commented 5 years ago

can i include library without convert my project to androidx

sundeepkmallick commented 5 years ago

Hi @tarek13 , Did you manage to include the library without converting the whole project to AndroidX?

tarek13 commented 5 years ago

yes

sundeepkmallick commented 5 years ago

Please suggest how?

tarek13 commented 5 years ago

i tried put it doesn't work so i need help from @faruktoptas to solve this issue

sundeepkmallick commented 5 years ago

I assume, only solution is to migrate the app to AndroidX. Notify if anyone succeeded. I concluded from this discussion: https://stackoverflow.com/questions/53268865/android-x-toolsreplace-specified-at-line-for-attribute-but-no-new-value-spec

tarek13 commented 5 years ago

thanks , but it is better to include library without androidx so i hope @faruktoptas to handle this issue

faruktoptas commented 5 years ago

Hi @tarek13 sorry for late reply. It should work without converting to androidx. Can you share the error you see when you implement. Also your gradle file please(to see other dependencies etc.)?

faruktoptas commented 5 years ago

@tarek13 you can use 1.1.5 version.

tarek13 commented 5 years ago

Great! Thanks a lot

karthikbala83 commented 5 years ago

@faruktoptas

We have migrated to androidX and facing the same issue for the version 1.2.1 Any idea how to fix it?

faruktoptas commented 5 years ago

ContextCompat is under androidx.core:core:1.xx can you check that you have this package. If not try to add the dependencies below:

implementation 'androidx.core:core-ktx:1.1.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
karthikbala83 commented 5 years ago

@faruktoptas

Thanks for the update. I've added but i'm getting belowerror

Duplicate class org.intellij.lang.annotations.Flow found in modules annotations-13.0.jar (org.jetbrains:annotations:13.0) and annotations-java5-15.0.jar (org.jetbrains:annotations-java5:15.0)

Do you have any idea about this?