java.lang.RuntimeException: android.database.sqlite.SQLiteException: 没有这样的表: media_store_extension (代码 1): ,

Wil*_*ill 10 android google-play flutter google-play-console

我在 2021 年 10 月之后在 Play 商店上发布我的应用程序时遇到问题,错误表明该表media_store_extension不存在。问题是:我在项目中没有使用 SQLITE,所以我不知道是什么导致了这个异常。

目标 sdk 是 30,最低限度是 26

完整错误:

FATAL EXCEPTION: latency_sensitive_executor-thread-1
Process: com.google.android.apps.photos, PID: 29478
java.lang.RuntimeException: android.database.sqlite.SQLiteException: no such table: media_store_extension (code 1): , while compiling: SELECT id FROM media_store_extension ORDER BY id DESC LIMIT 100 OFFSET 0
    at nqo.a(PG:3)
    at aleu.run(PG:6)
    at krv.a(PG:17)
    at krw.run(Unknown Source:6)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
    at java.lang.Thread.run(Thread.java:764)
    at ksa.run(PG:5)
Caused by: android.database.sqlite.SQLiteException: no such table: media_store_extension (code 1): , while compiling: SELECT id FROM media_store_extension ORDER BY id DESC LIMIT 100 OFFSET 0
    at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
    at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:890)
    at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:501)
    at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
    at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
    at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
    at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:46)
    at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1392)
    at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1239)
    at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1110)
    at agcm.a(PG:8)
    at nnw.run(PG:17)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    ... 4 more
Run Code Online (Sandbox Code Playgroud)

M.P*_*nov 12

此错误不仅来自 Flutter 开发人员,还来自 Unity(https://forum.unity.com/threads/getting-an-odd-error-in-internal-android-build-after-updating-iap.1104352 /https://forum.unity.com/threads/error-when-submitting-app-to-google-play.1098139/),就我而言 - 对于本机 Android 应用程序。

我们在 6 个月前首次收到此错误,并应用了 Unity 人员建议的修复程序:

aaptOptions {
    noCompress 'db'
    ...
}
Run Code Online (Sandbox Code Playgroud)

然而,昨天我们再次收到同样的错误,所以“修复”对我们不起作用

出现错误:

  1. (到目前为止)仅在内部测试期间
  2. 仅限红米6A。
  3. 不定期(并非每次都重现)
  4. 始终在处理 com.google.android.apps.photos

到目前为止,我看到的最合理的解释是,当测试机器人尝试截图时会发生异常。

这解释了为什么该过程是 Google Photos 的,为什么每次都不会重现该错误,以及为什么只需重新提交新版本即可“修复”该错误。

这也意味着只需忽略该错误就可以了。