Google Play Services 9.2.0 missing classes [duplicate]

柔情痞子 提交于 2019-12-03 23:22:39

Just add the maps library:

compile 'com.google.android.gms:play-services-maps:9.2.0'

and the places library:

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

play-services-location 9.0.2 depends on and automatically brings into your project play-services-maps and play-services-places, have a look at play-services-location-9.0.2.pom. Version 9.2.0 doesn't do that anymore so it is up to you to add it as your project dependency.

For other missing classes you can check here to find the right package (see Table 1 Individual APIs and corresponding build.gradle descriptions): https://developers.google.com/android/guides/setup#add_google_play_services_to_your_project

add compile 'com.google.android.gms:play-services:9.2.0'

btw, a good starting point to check is, create a new maps project at current updated android studio (and libs) and have a look whats different

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!