Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/215.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
谷歌+;Android登录无法解析com.google.Android.gms.plus.plus_Android_Android Studio_Google Play Services_Google Api Client_Google Login - Fatal编程技术网

谷歌+;Android登录无法解析com.google.Android.gms.plus.plus

谷歌+;Android登录无法解析com.google.Android.gms.plus.plus,android,android-studio,google-play-services,google-api-client,google-login,Android,Android Studio,Google Play Services,Google Api Client,Google Login,我尝试在我的android应用程序中创建一个连接google+,如下所示 但我被困在这里了 mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API, null) .addScope(Plus.SCOPE_PLUS_LOGIN) .build

我尝试在我的android应用程序中创建一个连接google+,如下所示
但我被困在这里了

 mGoogleApiClient = new GoogleApiClient.Builder(this)
    .addConnectionCallbacks(this)
    .addOnConnectionFailedListener(this)
    .addApi(Plus.API, null)
    .addScope(Plus.SCOPE_PLUS_LOGIN)
    .build();
错误:com.google.android.gms.plus.plus无法解析

Android Studio版本:0.4.6 操作系统版本:Windows7终极64位

我集成了google play服务,比如


为确保放置了正确的库,请尝试查看build.gradle是否在依赖项部分编译库。 删除库并再次添加,右键单击“添加为库”。 构建->清除项目 再建
希望这有帮助

但是你能使用com.google.android.gms.plus中的其他类吗?检查你的sdk中是否有这个类
$android sdk\extras\google\m2repository\com\google\android\gms\play services\4.0.30
@LuisAlberto是的所有其他库,如图所示查看以下答案:这一个也会有帮助: