Android 无法解析Plusclient.builder类

Android 无法解析Plusclient.builder类,android,Android,我是android studio的新手,我想使用google登录凭据登录。我保留了所有必需的依赖项,并编译了DK19.1.0版本。 它显示以下错误:: Error:(78, 31) error: cannot find symbol class Builder Error:Execution failed for task ':app:compileDebugJava'. > Compilation failed; see the compiler error output for de

我是android studio的新手,我想使用google登录凭据登录。我保留了所有必需的依赖项,并编译了DK19.1.0版本。 它显示以下错误::

Error:(78, 31) error: cannot find symbol class Builder
Error:Execution failed for task ':app:compileDebugJava'. 
> Compilation failed; see the compiler error output for details.

解决此问题需要建议。

我认为您没有下载Google Play服务,如果没有,请从SDK管理器->附加->Google Play服务安装

如果问题仍然存在,请执行以下操作

第5步

  • 导入Google Play服务库项目
  • 选择文件>导入>Android>现有Android代码到工作区,然后单击下一步。 选择浏览。。。。输入/extras/google/google\u play\u services/。 选择google-play-services_lib。单击“完成”以导入


    希望它能对您有所帮助。

    因为它已被弃用。而且Android studio中没有更新代码参考。使用谷歌Api客户端。指它为我工作

    不推荐使用
    PlusClient
    类(尽管您在Android Studio上看不到strike through警告)。我试图在Android Studio中使用
    Create LoginActivity
    选项创建新活动,但出现了此错误。我所做的是将我的
    Google play services
    版本从当前版本更改为

    compile 'com.google.android.gms:play-services:6.5.87'
    
    截至写信给:

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

    并重新同步了我的项目和它的工作。强烈建议您改用
    GoogleAppClient
    类。干杯。

    问题发生在android Studio中,如果您将限制保留在android Studio中,那就太好了。您找到解决方案了吗?它在eclipse上有效,但在Studio上无效。找不到studio的解决方案。请改用GoogleAppClient