A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks

后端 未结 6 1800
心在旅途
心在旅途 2020-11-29 11:18

i am getting this message in logcat A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource l

6条回答
  •  天涯浪人
    2020-11-29 11:29

    That means you have opened something but never close them.Closable have a method close which you must call to release the resources associated with the component when you no longer need it.

    To look for the leak, you can try MAT, I often use it to find memory leaks(static data holding a reference to Activity, etc).

提交回复
热议问题