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?
I've got a simple workaround for it:
int tmp = this.a; // tmp is available
this.a++; // this is not available
int tmp2 = this.a // tmp2 is available
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.
when i change my gradle config,the work for me. this is error config:
buildTypes {
release {
minifyEnabled true
zipAlignEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {
minifyEnabled true
zipAlignEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
and, this is work for me.
debug {
minifyEnabled false
zipAlignEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
Change'Build Variant' to debug
Inside Lambda expressions we can't evaluate the value of variables. Changing from the lambda expression to normal expression solved my issue
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