Can't resolve com.google.android.gms.plus.Plus class

妖精的绣舞 提交于 2019-12-05 05:03:05
midnightstar

Thank you NickT. I just updated Google Play Services and the Plus class came with the library.

This might sort out the issue

mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API) .addScope(Plus.SCOPE_PLUS_LOGIN) .build();

Have you set the meta-data in the manifest?

The all steps indicated in the getting started guide should be everything you need.

Add this in your app/build.gradle:

compile 'com.google.android.gms:play-services:8.1.0'

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