Thank you for your response.
I made the modifications you suggested, and it didnāt change anything. LeMemify runs fine on Android 11, but it crashes on API level 23.
Iām trying to update an existing app with thousands of downloads. Google estimates that 31% of current Android systems worldwide are running API level 28 or earlier. I canāt afford to abandon one third of my users. Someone needs to run and debug this on either a device or an emulator with an API level of 28 or earlier.
Hereās the stack trace:
2022-04-13 15:44:00.897 679-679/com.raywenderlich.android.lememeify E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.raywenderlich.android.lememeify, PID: 679
android.database.sqlite.SQLiteException: no such column: relative_path (code 1): , while compiling: SELECT _id, relative_path, _display_name, _size, mime_type, width, height, date_modified FROM images ORDER BY date_modified DESC
#################################################################
Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
(no such column: relative_path (code 1): , while compiling: SELECT _id, relative_path, _display_name, _size, mime_type, width, height, date_modified FROM images ORDER BY date_modified DESC)
#################################################################
#################################################################
Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
(no such column: relative_path (code 1): , while compiling: SELECT _id, relative_path, _display_name, _size, mime_type, width, height, date_modified FROM images ORDER BY date_modified DESC
#################################################################
Error Code : 1 (SQLITE_ERROR)
Caused By : SQL(query) error or missing database.
(no such column: relative_path (code 1): , while compiling: SELECT _id, relative_path, _display_name, _size, mime_type, width, height, date_modified FROM images ORDER BY date_modified DESC)
#################################################################)
#################################################################
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:179)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:421)
at android.content.ContentResolver.query(ContentResolver.java:502)
at android.content.ContentResolver.query(ContentResolver.java:445)
at com.raywenderlich.android.lememeify.FileOperations$queryImagesOnDevice$2.invokeSuspend(FileOperations.kt:76)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2022-04-13 15:44:03.587 679-679/com.raywenderlich.android.lememeify I/Process: Sending signal. PID: 679 SIG: 9