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 …