我不知道为什么android studio不能从import语句中解析客户端和查询:
import com.algolia.search.saas.Client;
import com.algolia.search.saas.Query;它显示无法解析客户端和查询这两个导入语句。
它出现在我的app Gradle文件中:
implementation 'com.algolia:instantsearch-android:1.15.0'我多次尝试无效缓存和重启,甚至尝试在上面的Gradle文件中更改Algolia依赖的版本,但都不起作用。
我不能理解为什么会发生这种情况,如果有人能在这方面帮助我,我将不胜感激。
发布于 2019-03-05 19:01:11
试试这个:https://www.algolia.com/doc/guides/building-search-ui/installation/android/
dependencies {
// [...]
implementation 'com.algolia:instantsearch-android:1.+'
// This will automatically update to the latest v1 release of InstantSearch
// OR
implementation 'com.algolia:algoliasearch-android:3.+'
// This will automatically update to the latest v3 release of the client
}发布于 2019-07-17 01:11:19
试着把这个也包括进来
实施'com.algolia:instantsearch-androidx-core:1.15.2‘
发布于 2019-08-15 04:37:54
我使用的是androidx库,所以您的里程可能会有所不同,但是添加
implementation 'com.algolia:algoliasearch-android:3.27.0'为我解决了问题。
https://stackoverflow.com/questions/55001099
复制相似问题