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

java.lang.NoSuchMethodError: No static method ConfigurationInsights$default #424

Open
DenisBronx opened this issue Aug 19, 2024 · 0 comments

Comments

@DenisBronx
Copy link

DenisBronx commented Aug 19, 2024

When upgrading from 2.1.8 to 2.1.9 or any newer version I get this crash when I call the registerInsights function:

java.lang.NoSuchMethodError: No static method ConfigurationInsights$default(Lcom/algolia/search/model/ApplicationID;Lcom/algolia/search/model/APIKey;JJLcom/algolia/search/logging/LogLevel;Ljava/util/List;Ljava/util/Map;Lio/ktor/client/engine/HttpClientEngine;Lkotlin/jvm/functions/Function1;Lcom/algolia/search/logging/Logger;ILjava/lang/Object;)Lcom/algolia/search/configuration/ConfigurationInsights; in class Lcom/algolia/search/configuration/ConfigurationInsightsKt; or its super classes (declaration of 'com.algolia.search.configuration.ConfigurationInsightsKt' appears in /data/data/com.gymshark.store.staging/code_cache/.overlay/base.apk/classes34.dex)
                                                                                                    	at com.algolia.instantsearch.insights.internal.extension.InsightsKt.clientInsights(Insights.kt:23)
                                                                                                    	at com.algolia.instantsearch.insights.InsightsKt.registerInsights(Insights.kt:90)
                                                                                                    	at com.algolia.instantsearch.insights.InsightsKt.registerInsights(Insights.kt:59)
                                                                                                    	at com.algolia.instantsearch.insights.InsightsKt.registerInsights$default(Insights.kt:51)

These are my current library versions for reproducing the crash:

implementation "com.algolia:algoliasearch-client-kotlin:2.1.9"
implementation "com.algolia:instantsearch-android:3.3.1"
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