Android 如何解决“问题”;gms数据库的SQLiteConnection“;那被泄露了

Android 如何解决“问题”;gms数据库的SQLiteConnection“;那被泄露了,android,memory-leaks,google-play-services,Android,Memory Leaks,Google Play Services,我的应用程序使用了Google Play Services,在logcat中收到了以下警告 12-06 12:53:58.240 2748-2757/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/data/com.google.android.gms/databases/metrics.db' was leaked! Please fix your ap

我的应用程序使用了Google Play Services,在logcat中收到了以下警告

 12-06 12:53:58.240 2748-2757/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/data/com.google.android.gms/databases/metrics.db' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
    12-06 12:53:58.240 2748-2757/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/data/com.google.android.gms/databases/help_responses.db' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
    12-06 12:53:58.240 2748-2757/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/data/com.google.android.gms/databases/auto_complete_suggestions.db' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
…但与上面讨论的所有其他情况不同,我的应用程序不使用任何数据库

相反,这似乎是来自谷歌游戏服务数据库的泄漏


怎么才能解决这个问题呢

我想如果你从google play store中清除数据,那就好了


设置->应用->Google Play Services->管理空间->清除所有数据而不是使用运行“应用程序”,我一直在使用这些警告消息

我使用了调试“应用程序”,因此我被告知我有以下错误:

java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
这是有意义的,因为我的活动扩展了AppCompatActivity

清单中我指定了
android:theme=“@android:style/theme.NoDisplay”

这显然不是Theme.AppCompat的后代

我看到了将我的活动扩展到好的老活动的建议,它成功了


事实上,不久之后,原来的警告消息再次出现,我的应用程序停止工作,因此我还没有回答原来的问题:(Android Monitor上的Android Studio中的Android Monitor右角从“Firebase”更改为“仅显示选定的应用程序”

此错误只是因为您没有在firebase数据库访问的数据类中声明任何默认构造函数,只需创建一个空白的默认构造函数就可以了!

输入“设置”后,我看不到“应用”,如果我将“应用”放入搜索,我会得到带有“谷歌服务”的“插件”,但不会“谷歌播放服务”而不是“管理空间”或“清除所有数据”。请建议:)这是android 6。哪个版本是你的??我错了,我以为你指的是android Studio中的设置,而你指的是设备上的设置。谢谢。你的建议没有改变任何东西,请看我的回答,干杯!这不是像“把头埋在沙子里”一样吗"? 警告仍然存在!你救了我一天…!!::)@谢谢你的信息。。。这很有帮助。。很多我认为这是我的应用程序或android Studiot的问题,这对我很有帮助。这不是一个解决方案,这只是隐藏了信息。