I am relatively new to the scene with little programming background, therefore I apologise in advance if I ask something silly. I am show a google map using SupportMapFragment. I am doing this to prevent a leak in onDestroyView(), however no clue whether this is right or wrong? Full code is here: https://github.com/warfo09/warforepo/blob/main/MainActivity.java This is what I get when I
Tag: leakcanary
Can’t use LeakCanary because of org.junit.Test class dependency in external libraries
I’m trying to use LeakCanary for finding memory leaks in my Android application. I’m using Android Studio. When I start debugging my application I see “LeakCanary is currently disabled: test class org.junit.Test was found in classpath.” message. “org.junit.test” class came from external library. How can I force enable LeakCanary? Answer LeakCanary automatically disables itself in tests by detecting that the