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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't instantiate HitsSearch or any InstantSearch class #386

Open
iaglourenco opened this issue Apr 23, 2023 · 4 comments
Open

Can't instantiate HitsSearch or any InstantSearch class #386

iaglourenco opened this issue Apr 23, 2023 · 4 comments

Comments

@iaglourenco
Copy link

iaglourenco commented Apr 23, 2023

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:

  • OS: Android Studio / Linux
  • Library Version 3.1.7

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
Copy link
Author

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

implementation 'com.algolia:instantsearch-android:3.1.7'

@iaglourenco
Copy link
Author

iaglourenco commented Apr 23, 2023

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
Copy link
Author

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
Copy link
Author

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

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

1 participant