我在中有一个错误:addapi(Plus.API);
plus显示错误,我不知道为什么。
我使用谷歌提供的下一个代码,"Plus"不存在。
GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(Plus.API)
.addScope(Plus.SCOPE_PLUS_LOGIN)
.build();
super.onStart();
mGoogleApiClient.connect();
这个问题一直存在,我不知道我做错了什么。
我按照谷歌的指示配置了google-services.json文件。我得到了OAuth和sha,用于制作配置文件。我找不到答案。
我猜您尚未在应用程序中添加Google Play Services库。在应用程序的build.gradle文件中添加以下行
compile 'com.google.android.gms:play-services-plus:8.3.0'