[Galaxy S Plus I9001 Android Development] muczy:
Hi everybody!

ADT: Thanks for your work! We really love the result of it!

One thing I've noticed: can't get Google Calendar to sync, when I try to add my account I get a "There was a problem with Google servers. Try again later."

Logcat:

I/ActivityManager( 580): Start proc com.android.providers.calendar for content provider com.android.providers.calendar/.CalendarProvider2: pid=4500 uid=10002 gids={50002, 3003, 1028, 1015}
D/dalvikvm( 4500): DexOpt: VM build version mismatch (27 vs 28)
E/dalvikvm( 4500): /system/priv-app/CalendarProvider.apk odex has stale dependencies
E/DatabaseUtils( 4500): Writing exception to parcel
E/DatabaseUtils( 4500): java.lang.IllegalArgumentException: color type 0 and index 19 already exists for account and type provided
E/DatabaseUtils( 4500): at com.android.providers.calendar.CalendarProvider2.insertInTransaction(CalendarProvider2.java:2277)
E/DatabaseUtils( 4500): at com.android.providers.calendar.SQLiteContentProvider.insert(SQLiteContentProvider.java:110)
E/DatabaseUtils( 4500): at android.content.ContentProviderOperation.apply(ContentProviderOperation.java:214)
E/DatabaseUtils( 4500): at com.android.providers.calendar.SQLiteContentProvider.applyBatch(SQLiteContentProvider.java:234)
E/DatabaseUtils( 4500): at android.content.ContentProvider$Transport.applyBatch(ContentProvider.java:260)
E/DatabaseUtils( 4500): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:185)
E/DatabaseUtils( 4500): at android.os.Binder.execTransact(Binder.java:404)
E/DatabaseUtils( 4500): at dalvik.system.NativeStart.run(Native Method)
W/CalendarSyncAdapter( 4478): Failed to update colors
W/CalendarSyncAdapter( 4478): com.google.android.apiary.ParseException: java.lang.IllegalArgumentException: color type 0 and index 19 already exists for account and type provided
W/CalendarSyncAdapter( 4478): at com.google.android.apiary.ProviderHelper.applyBatchProvider(ProviderHelper.java:67)
W/CalendarSyncAdapter( 4478): at com.google.android.syncadapters.calendar.CalendarSyncAdapterApiary.applyOperations(CalendarSyncAdapterApiary.java:1977)
W/CalendarSyncAdapter( 4478): at com.google.android.syncadapters.calendar.CalendarSyncAdapterApiary.updateColorsInProvider(CalendarSyncAdapterApiary.java:574)
W/CalendarSyncAdapter( 4478): at com.google.android.syncadapters.calendar.CalendarSyncAdapterApiary.updateColorsInProvider(CalendarSyncAdapterApiary.java:2447)
W/CalendarSyncAdapter( 4478): at com.google.android.syncadapters.calendar.CalendarSyncAdapterApiary.updateColorMapFromGsf(CalendarSyncAdapterApiary.java:287)
W/CalendarSyncAdapter( 4478): at com.google.android.syncadapters.calendar.CalendarSyncAdapterApiary.onPerformLoggedSync(CalendarSyncAdapterApiary.java:317)
W/CalendarSyncAdapter( 4478): at com.google.android.common.LoggingThreadedSyncAdapter.onPerformSync(LoggingThreadedSyncAdapter.java:33)
W/CalendarSyncAdapter( 4478): at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
W/CalendarSyncAdapter( 4478): Caused by: java.lang.IllegalArgumentException: color type 0 and index 19 already exists for account and type provided
W/CalendarSyncAdapter( 4478): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:167)
W/CalendarSyncAdapter( 4478): at android.database.DatabaseUtils.readExceptionWithOperationApplicationExceptionFromParcel(DatabaseUtils.java:160)
W/CalendarSyncAdapter( 4478): at android.content.ContentProviderProxy.applyBatch(ContentProviderNative.java:512)
W/CalendarSyncAdapter( 4478): at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:377)
W/CalendarSyncAdapter( 4478): at com.google.android.apiary.ProviderHelper.applyBatchProvider(ProviderHelper.java:65)
W/CalendarSyncAdapter( 4478): ... 7 more

The problem might be this:

E/dalvikvm( 4500): /system/priv-app/CalendarProvider.apk odex has stale dependencies

Any idea how to solve this problem?

---------- Post added at 11:09 AM ---------- Previous post was at 11:01 AM ----------

Just solved it: disable Privacy Guard for Google Calendar (I had PG autoprotect everything)...