algolia / algoliasearch-client-kotlin

⚡️ A fully-featured and blazing-fast Kotlin/Android API client to interact with Algolia.
https://www.algolia.com/doc/api-client/getting-started/install/kotlin/
MIT License
59 stars 23 forks source link

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

Open DenisBronx opened 3 months ago

DenisBronx commented 3 months ago

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"