gpt4 book ai didi

android - 找不到符号类 AutocompletePrediction

转载 作者:太空宇宙 更新时间:2023-11-03 12:28:55 25 4
gpt4 key购买 nike

我将我的 gms 版本从 8.4.0 升级到 9.6.0。在 Sync Now 之后我破坏了很多东西。 AutocompletePrediction在9.6.0版本中是否被移除?

升级前:

compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'com.google.android.gms:play-services-maps:8.4.0'
compile 'com.google.android.gms:play-services-location:8.4.0'
compile 'com.google.android.gms:play-services-analytics:8.4.0'

升级后:

compile 'com.google.android.gms:play-services-gcm:9.6.0'
compile 'com.google.android.gms:play-services-maps:9.6.0'
compile 'com.google.android.gms:play-services-location:9.6.0'
compile 'com.google.android.gms:play-services-analytics:9.6.0'

堆栈跟踪:

Error:(15, 46) error: cannot find symbol class AutocompleteFilter
Error:(16, 46) error: cannot find symbol class AutocompletePrediction
Error:(17, 46) error: cannot find symbol class AutocompletePredictionBuffer
Error:(18, 46) error: cannot find symbol class Places
Error:(48, 13) error: cannot find symbol class AutocompleteFilter
Error:(51, 83) error: cannot find symbol class AutocompleteFilter
Error:(110, 23) error: cannot find symbol class AutocompletePrediction
Error:Execution failed for task ':app:compileClientReleaseJavaWithJavac'.
Compilation failed; see the compiler error output for details.

最佳答案

除了添加 play-services-location 库之外,您还需要添加 play-services-places 库,因为 Places 和 Autocomplete 类已移至该库,在我的例子中我使用

compile 'com.google.android.gms:play-services-places:9.6.1'

关于android - 找不到符号类 AutocompletePrediction,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39656030/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com