找不到符号类生成器 [英] can not find symbol class Builder

查看:42
本文介绍了找不到符号类生成器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 android 中使用 loginActivity.

I am using loginActivity in android.

错误

can not find symbol class Builder

我还导入了文件:com.google.android.gms.plus.PlusClient

此行出错

mPlusClient = new PlusClient.Builder(this, this, this).setScopes(Scopes.PLUS_LOGIN, Scopes.PLUS_ME).build();

这是从模板自动生成的文件.此错误的原因可能是什么?

This is auto generated file from template. What could be the reason for this error?

编辑

我正在使用安卓工作室

minSdkVersion 11

minSdkVersion 11

目标 SDK 版本 21

targetSdkVersion 21

推荐答案

我在我的项目中通过将 play-services 降级到:

I solved in my project by downgrading play-services to:

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

在 gradle 文件中的依赖项中.

in dependencies in gradle file.

这篇关于找不到符号类生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆