gpt4 book ai didi

android - GoogleApiClient.ConnectionCallbacks 错误编译时间

转载 作者:搜寻专家 更新时间:2023-11-01 08:51:45 24 4
gpt4 key购买 nike

我应该使用 google drive bat 我无法编译此 Activity

package com.google.android.gms.drive.sample.demo;

import android.app.Activity;
import android.content.Intent;
import android.content.IntentSender.SendIntentException;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;

/**
* An abstract activity that handles authorization and connection to the Drive
* services.
*/
public abstract class BaseDemoActivity extends Activity implements
GoogleApiClient.ConnectionCallbacks,
GoogleApiClient.OnConnectionFailedListener {
...

我使用 Google Plugin for Eclipse 来安装库和谷歌 API但是由于编译错误

GoogleApiClient cannot be resolved to a type

最佳答案

关注Google+ Platform Quickstart for Android以便将 Google Play 服务安装为库项目

具体见第 5 步:

5. Import the Google Play Services library project.

Select File > Import > Android > Existing Android Code Into Workspace and click Next.
Select Browse.... Enter <android-sdk-folder>/extras/google/google_play_services/.
Select google-play-services_lib. Click Finish to import.

关于android - GoogleApiClient.ConnectionCallbacks 错误编译时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22622184/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com