我将我的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所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)