错误com.google.android.gms.drive.DriveApi.DriveContentsResult不能得到解决错误、google、com、android

由网友(爱是泡沫。)分享简介:我工作的谷歌Android驱动器。截至目前我使用的是github上样品code 的Andr​​oid演示。我得到的误差  进口com.google.android.gms.drive.DriveApi.DriveContentsResult  无法解析和  导入com.google.android.gms.drive....

我工作的谷歌Android驱动器。截至目前我使用的是github上样品code 的Andr​​oid演示。我得到的误差

  

进口com.google.android.gms.drive.DriveApi.DriveContentsResult  无法解析

  

导入com.google.android.gms.drive.DriveContents不能  解决

我使用的是谷歌更新播放服务,我已经导入正确的。

我使用eclipse

解决方案

 进口com.google.android.gms.drive.DriveApi.DriveContentsResult不能得到解决 

 进口com.google.android.gms.drive.DriveContents不能得到解决 
微软又一次想让 Windows 运行 Android 应用了

当我们使用旧的谷歌播放服务的图书馆和新的code发生这种情况。只是删除旧库,下载新的谷歌游戏服务库,如果你没有和导入库工作区。

当你做这样的,如果你使用

 进口com.google.android.gms.drive.events.DriveEvent.Listener 

然后行更改为

 进口com.google.android.gms.drive.events.ChangeListener; 

由于监听器在新的lib成为的ChangeListener,并在code相应的变化。

I am working on Android Google Drive. As of now I am using the github sample code Android Demos. I am getting an error of

The import com.google.android.gms.drive.DriveApi.DriveContentsResult cannot be resolved

and

The import com.google.android.gms.drive.DriveContents cannot be resolved

I am using the updated Google play service and I have imported it properly.

I am using eclipse

解决方案

The import com.google.android.gms.drive.DriveApi.DriveContentsResult cannot be resolved

and

The import com.google.android.gms.drive.DriveContents cannot be resolved

This occur when we use old Google play service library and new code. Just delete the old library, download new Google play service library if you don't have and import the library to your workspace.

When you do like this, if you are using

import com.google.android.gms.drive.events.DriveEvent.Listener

Then change the line to

import com.google.android.gms.drive.events.ChangeListener;

Because Listener became ChangeListener in the new lib, and make corresponding changes in the code.

阅读全文

相关推荐

最新文章