Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion itemModel not resolved #12

Open
abalta opened this issue Dec 24, 2019 · 9 comments
Open

suggestion itemModel not resolved #12

abalta opened this issue Dec 24, 2019 · 9 comments

Comments

@abalta
Copy link

abalta commented Dec 24, 2019

I want to use OnSuggestionChangeListener, but itemModel not resolved. I'm getting following error.

Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class com.paulrybitskyi.persistentsearchview.adapters.model.SuggestionItem, unresolved supertypes: com.arthurivanets.adapster.model.BaseItem, com.arthurivanets.adapster.model.markers.Trackable

@mars885
Copy link
Owner

mars885 commented Dec 27, 2019

Have you tried cleaning and then rebuilding project or, alternatively, invalidating caches and then restarting the project?

@ghost
Copy link

ghost commented Dec 27, 2019

I tried everything. Nothing works. But, I added arthurivanets' library in my gradle it works. Why I need to add another library. Please, create an empty project add your library via gradle.

@paulelpidorou
Copy link

same issue here. itemModel not resolved

@paulelpidorou
Copy link

I resolved this issue with including com.arthurivanets.adapster:adapster library

@mars885
Copy link
Owner

mars885 commented Jan 12, 2020

I've just tested the library by creating a new project and then including the library. Everything seems to be working fine for me. Looks like this issue happens only for very small subset of users.

@gowthamgts
Copy link

gowthamgts commented Mar 29, 2020

same issue here. Got this exception

Cannot access 'com.arthurivanets.adapster.model.BaseItem' which is a supertype of 'com.paulrybitskyi.persistentsearchview.adapters.model.SuggestionItem'. Check your module classpath for missing or conflicting dependencies

@FFSDevelopers
Copy link

Resolved by adding implementation "com.arthurivanets.adapster:adapster:1.0.13".

@guyijie1211
Copy link

same issue

implementation "com.arthurivanets.adapster:adapster:1.0.13"

solved, Thanks

@mars885
Copy link
Owner

mars885 commented Oct 27, 2021

Hello there.

This issue has been going around for quite some time. The problem is that the library has leaked public API of the adapster library, which is a library used to simplify working with the RecyclerView class, since the first release. I'm specifically talking about these two methods: setSuggestions(List<? extends SuggestionItem>) and setSuggestions(List<? extends SuggestionItem>, boolean).

This was a total mistake. Unfortunately, I can't just go and completely refactor this piece of code, because that would break a lot of existing code. Therefore, I've released a new version of the library called 1.1.4, which now exposes adapster library as a compile classpath dependency. This means now that you don't have to manually include adapster in your gradle files, starting from that version.

Hope you understand.

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

No branches or pull requests

6 participants