this is not captured1 [Android] setOnClickListener 사용시 not captured View Binding을 사용해 setOnClickListener를 이용해 버튼이 클릭되면 특정이벤트를 수행하는 동작을 만들던 도중 setOnClickListener안에서 변수를 디버깅하는데 this@액티비티명 is not caputred라고 나와서 디버깅에 한참 애를 먹었다. 아래 게시글에 따르면 코틀린에서는 setOnClickListener를 람다형식으로 하면 디버깅을 할수없다고 한다. https://stackoverflow.com/questions/67873951/thisactivityname-is-not-captured-error-android-kotlin 'this@ActivityName' is not captured error Android/Kotlin I'm repairing my frien.. 2022. 7. 7. 이전 1 다음