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

后端 未结 6 1797
心在旅途
心在旅途 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:33

    For me the problem happened because I was overriding the method onBackPressed() without calling the super()

    @Override
    public void onBackPressed() {
        //some coding here
        super.onBackPressed();
    }
    

提交回复
热议问题