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

dreamer1989 picture dreamer1989 · Aug 28, 2014 · Viewed 40.6k times · Source

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 leaks. where to look for leak and what does it meant by " See java.io.Closeable"

Answer

suitianshi picture suitianshi · Aug 28, 2014

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).