본문 바로가기

Android

robolectric 에서 leak canary 오류 발생 java.lang.NoSuchMethodError: com.squareup.leakcanary.RefWatcher

testImplementation "org.robolectric:robolectric:4.1" 에서 괜찮다가 4.3 으로 변경 시 오류가 발생 했는데

글들을 뒤져보다가 보니 결론 난건
https://github.com/square/leakcanary/issues/1180
https://github.com/square/leakcanary/issues/1198
https://github.com/square/leakcanary/issues/979

신규 버전에서 고쳤으니 그걸 사용하라고 하는 것
https://square.github.io/leakcanary/getting_started/