UserRecoverableAuthException - DeviceManagementRequiredOrSyncDisabled
Вот фрагмент:
try {
final String token = GoogleAuthUtil.getToken(context, account, AUTH_TOKEN_SCOPE);
}catch (UserRecoverableAuthException e) {
e.printStackTrace();
activity.startActivityForResult(
e.getIntent(),
MY_ACTIVITYS_AUTH_REQUEST_CODE);
} catch (IOException transientEx) {
} catch (GoogleAuthException authEx) {
}
Разрешения включены:
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS"/>
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>