我已经在我的 android 应用程序中集成了 Google Drive,当我在具有 android 版本 2.3.6 的设备上调试应用程序时,当我调用这个时,我得到了 ClassNotFoundException:
mCredential.getToken();
mCredential 设置如下:
mCredential = GoogleAccountCredential.usingOAuth2(context, DriveScopes.DRIVE);
我在“调试”选项卡中看到:
Thread [<13> Thread-15] (Suspended (exception ClassNotFoundException))
<VM does not provide monitor information>
PathClassLoader.findClass(String) line: 240
PathClassLoader(ClassLoader).loadClass(String, boolean) line: 551
PathClassLoader(ClassLoader).loadClass(String) line: 511
GoogleAuthUtil.f(Context) line: not available
GoogleAuthUtil.getToken(Context, String, String, Bundle) line: not available
GoogleAuthUtil.getToken(Context, String, String) line: not available
GoogleAccountCredential.getToken() line: 192
GoogleDrive.checkIfUserIsAuthenticated(Activity, boolean) line: 411
GoogleDrive.access$4(GoogleDrive, Activity, boolean) line: 403
GoogleDrive$1.run() line: 98
有人能帮我吗?