Android アプリに Google ドライブを統合しました。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
誰かが私を助けることができますか?