This error message is pretty clear:
CookieSyncManager::createInstance() needs to be called before CookieSyncManager::getInstance()
I followed the official documentation in one of recent apps and CookieSyncMasnager is working just fine...
I have the following:
onCreate()
CookieSyncManager.createInstance(this);
onResume()
CookieSyncManager.getInstance().startSync();
onPause()
CookieSyncManager.getInstance().stopSync();
I am using the activity context in the createInstance(). You don't mention which context you're using?
You also don't mention doing a CookieSyncManager.getInstance().stopSync() in onPause() (or similar). So perhaps for a resume you are calling CookieSyncManager.getInstance().startSync() twice without an intervening stop?