GoogleApiClient.ConnectionCallbacks错误编译时间

时间:2014-03-24 22:49:18

标签: android google-drive-api google-api-client

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

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

1 个答案:

答案 0 :(得分:3)

关注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.
相关问题