错误com.google.android.gms.drive.DriveApi.DriveContentsResult不能得到解决 [英] Error com.google.android.gms.drive.DriveApi.DriveContentsResult cannot be resolved
问题描述
我工作的谷歌Android驱动器。截至目前我使用的是github上样品code 的Android演示。我得到的误差
进口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不能得到解决
当我们使用旧的谷歌播放服务的图书馆和新的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.
这篇关于错误com.google.android.gms.drive.DriveApi.DriveContentsResult不能得到解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!