我正在尝试运行以下行
credential = GoogleAccountCredential.usingOAuth2(this, DriveScopes.DRIVE);
并得到这个错误:
The method usingOAuth2(Context, Collection<String>) in the type GoogleAccountCredential is not applicable for the arguments (GoogleDriveProxeyActivity, String)
然后我将代码更改为:
credential = GoogleAccountCredential.usingOAuth2(this, Arrays.asList(DriveScopes.DRIVE.split(",")));
但是有没有更简单\更简洁的方法来发送正确类型的参数?