Getting “EnclosingMethod” errors on building in Android Studio 2

后端 未结 4 1032
不知归路
不知归路 2020-12-10 23:46

I am getting below build errors when I am running the app in Android Studio 2. These errors were not there when I was using earlier version of Android Studio.



        
4条回答
  •  星月不相逢
    2020-12-11 00:26

    I solved the issue by adding following dependency to my build.gradle:

    testCompile "com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2"

    here is link:https://github.com/square/leakcanary/issues/491

提交回复
热议问题