I am using SQLite in base feature to delete a table
MyApplication.getDatabase().delete(TABLE_NAME, null, null)
It crashes the application by throwing error:
android.database.sqlite.SQLiteDiskIOException: disk I/O error (code 1546)
Is SQLite supported with Android Instant apps? I was not able to find any documentation on it.
Edit 1:
I am using an emulator with Nexus 5X image running Android 6.0 (API level 23), x86, with Google APIs.
Exact error thrown by SQLite is :
E/SQLiteLog: (1546) os_unix.c:29096: (13) ftruncate(/data/user/0/com.google.android.instantapps.supervisor/files/hosted/com.hello.world.app/databases/Cache.db)
Edit 2:
This code works fine on Pixel API 25