android– 无法找到符号类AutocompletePrediction

android– 无法找到符号类AutocompletePrediction,第1张

概述我将我的gms版本从8.4.0升级到9.6.0.在SyncNow之后我打破了很多东西.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.andro

我将我的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 autocompleteFilterError:(16, 46) error: cannot find symbol class autocompletePredictionError:(17, 46) error: cannot find symbol class autocompletePredictionBufferError:(18, 46) error: cannot find symbol class PlacesError:(48, 13) error: cannot find symbol class autocompleteFilterError:(51, 83) error: cannot find symbol class autocompleteFilterError:(110, 23) error: cannot find symbol class autocompletePredictionError: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全部内容,希望文章能够帮你解决android – 无法找到符号类AutocompletePrediction所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1111204.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存