我应该使用 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 来安装库和 google 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/