com.google.android.gms.drive.DriveApi.ContentsResult解决不了的......但一​​切可以吗? [英] com.google.android.gms.drive.DriveApi.ContentsResult cannot be resolved... But everything else can be?

查看:305
本文介绍了com.google.android.gms.drive.DriveApi.ContentsResult解决不了的......但一​​切可以吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到这个错误:

 com.google.android.gms.drive.DriveApi.ContentsResult cannot be resolved

但只是一个导入。这些所有的工作:

But just with that one import. These all work:

import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesUtil;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.ResultCallback;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.drive.Contents;
import com.google.android.gms.drive.Drive;
import com.google.android.gms.drive.DriveFile;
import com.google.android.gms.drive.DriveFolder.DriveFileResult;
import com.google.android.gms.drive.MetadataChangeSet;

由于某种原因ContentsResult无法找到。即使这样的作品:

And for some reason ContentsResult can't be found. Even doing this works:

 import com.google.android.gms.drive.DriveApi.*;

和它在这个意义上的作品,它没有错误的进口,但是当我这样做,ContentsResult仍然只是找不到...

And it works in the sense that it doesn't error on the import, but when I do that, ContentsResult still just cannot be found...

有没有人有这个问题?

推荐答案

有在DriveApi包中没有 ContentsResult 类,但有一个 DriveContentsResult 类:

There is no ContentsResult class in the DriveApi package, but there is a DriveContentsResult class:

com.google.android.gms.drive.DriveApi.DriveContentsResult

请参阅的http://developer.android.com/reference/com/google/android/gms/drive/package-summary.html

这篇关于com.google.android.gms.drive.DriveApi.ContentsResult解决不了的......但一​​切可以吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆