Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"'this' is not available" in debug windows of Android Studio

I get this message in debug windows in Android Studio. This is not a static method, nor is it a class. What does it mean?

enter image description here

like image 248
Anthony Avatar asked Feb 01 '16 13:02

Anthony


People also ask

How do I enable debug on APK?

However, you need to make sure you're using an APK with debugging enabled. To start debugging an APK, click Profile or debug APK from the Android Studio Welcome screen. Or, if you already have a project open, click File > Profile or Debug APK from the menu bar.

What is debug mode in Android Studio?

Android Studio provides a debugger that allows you to do the following and more: Select a device to debug your app on. Set breakpoints in your Java, Kotlin, and C/C++ code. Examine variables and evaluate expressions at runtime.


2 Answers

Inside Lambda block we can't evaluate the value of variables. Changing from the lambda expression to normal expression solved my issue

like image 104
MarGin Avatar answered Sep 21 '22 19:09

MarGin


I think this is an issue related to Reflexion. My project was using Hugo. As soon as I disable it, the bug disappeared.

Issue has been pushed : https://github.com/JakeWharton/hugo/issues/127

like image 43
Anthony Avatar answered Sep 22 '22 19:09

Anthony