“'this' is not available” in debug windows of Android Studio

前端 未结 6 1251
梦如初夏
梦如初夏 2020-12-10 10:23

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?

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-10 10:40

    this keyword is references to the current object instance, as in the the official Java documentation.

    In your case the error message 'this' is not available means that the debugger cannot access (i.e. does not know) the current object.

提交回复
热议问题