如何处理 QT 应用程序中的“模块配置已更改,由于模块 com.google.android.gms.ads.dynamite”而强制重启?

Dmi*_*ano 12 qt android google-play-services

据我从这篇文章中了解到,ChimeraModule当我在干净的模拟器上启动我的应用程序时,有一些模块会定期关闭我的应用程序。我有onApplicationStateChanged将应用程序状态保存到文件的 QT 事件处理程序,但在这种情况下没有调用它,因此应用程序状态丢失。

在这种情况下保存我的数据的正确点是什么?

应用日志包含以下内容:

D MyApp : onApplicationStateChanged(Qt::ApplicationActive)
...
I ChimeraModuleLdr: Module config changed, forcing restart due to module com.google.android.gms.ads.dynamite
I Process : Sending signal. PID: 7442 SIG: 9
Run Code Online (Sandbox Code Playgroud)

当我切换到另一个应用程序(或停用该应用程序)时,也会出现

D MyApp : onApplicationStateChanged(Qt::ApplicationInactive)
D MyApp : onApplicationStateChanged(Qt::ApplicationSuspended)
Run Code Online (Sandbox Code Playgroud)

在日志中并保存应用程序状态。