Mobile, Android sdk 1.10 to 1.4.0 migration. Can not resolve method beginTransaction()

I’m realy have poor knowledge in java but still tasked to upgrade same exiting android application. The application i’m working on has some problems with android 7.0 and higher versions. I tracked down the problem and leaded me to couchbase lite sdk. I did upgrade sdk to lastestes version 1.4.0 but Database.beginTransaction(), and Database.endTransaction() methods no logger exist. I coud’t find a migration guide beteewen versions nor a simlar question on net. I can’t figure out how to fix fallowing code.

 application.getDatabase().beginTransaction();
 Map<String, Object> updatedProperties = new HashMap<String, Object>();
 updatedProperties.putAll(document.getProperties());
 updatedProperties.put("TaskObject", object);
 document.putProperties(updatedProperties);
 Log.e("Database", "Document updated");
 application.getDatabase().endTransaction(true);

Thanking in advance for any help

Hi @Hedecan,

Instead of Database.beginTransaction()/endTransaction(), Please use Database.runInTransaction() method.
https://developer.couchbase.com/documentation/mobile/1.4/references/couchbase-lite/couchbase-lite/database/database/index.html

Thanks,
Hideki