algolia / instantsearch-android

A library of widgets and helpers to build instant-search applications on Android.
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/android/
Apache License 2.0
156 stars 30 forks source link

Can't instantiate HitsSearch or any InstantSearch class #386

Open iaglourenco opened 1 year ago

iaglourenco commented 1 year ago

Describe the bug 🐛 I can't instantiate any class of com.algolia:instantsearch-android:3.+

To Reproduce 🔍 Type this line in any activity HitsSearcher searcher = new HitsSearcher();

Expected behavior 💭 Resolve the class names

Screenshot image

Here i've tried to use the AutoComplete of Android Studio to find the class (Using v3.+)

Environment:

Additional context I'm using Java to develop, i've tried to test with v1.+ and the class names have been resolved succesfully. I've this issue in v2.+ and v3.+

Is there support for Java or the library is only for Kotlin projects?

iaglourenco commented 1 year ago

My build.gradle have this dependency, as said in the docs

implementation 'com.algolia:instantsearch-android:3.1.7'
iaglourenco commented 1 year ago

UPDATE:

I have sucess using implementation 'com.algolia:algoliasearch-android:3.27.0'

But this library is old, i'll continue with it but i'll appreciate if there is a solution

iaglourenco commented 1 year ago

UPDATE: I've tried to check jitpack to see the JAR/AAR file and found this

https://jitpack.io/com/github/algolia/instantsearch-android/3.1.7/build.log

It appears that the build is failing

iaglourenco commented 1 year ago

UPDATE:

I've the AAR directly from https://mvnrepository.com/artifact/com.algolia/instantsearch-android/3.1.7

And now it work's it seems that the build in jitpack aren't working