错误:无法解析符号mGoogleApiClient

时间:2016-09-27 02:48:43

标签: google-drive-api google-play-services google-api-client

所以我试图将谷歌驱动器连接到android工作室。我在MainActivity.java文件中有以下代码,它给了我一个错误。任何帮助表示赞赏。

<child get-data="parentCtrl.getDataInParent(params)"></child>

2 个答案:

答案 0 :(得分:2)

您尚未声明变量mGoogleApiClient

答案 1 :(得分:0)

我解决了我的问题:

GoogleApiClient mGoogleApiClient

这是我的完整代码:

GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(this)
                .enableAutoManage(this, (GoogleApiClient.OnConnectionFailedListener) this)
                .addApi(Auth.GOOGLE_SIGN_IN_API, gso)
                .build();
相关问题