android studio 3.6.1 debug cannot find local variable

Viewed 441

Android studio 3.6.1 showing no local variable while debugging, please help me to get out of this.

no debug local variable screenshot

My Environment:-

Android Studio = 3.6.1 ( with kotlin )
Gradle = 'com.android.tools.build:gradle:3.6.1'
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
1 Answers

Looks like your local variable not used anywhere in code and cleared in build time (Optimization when all unused resources or code filtered and not get into final build). You can log it for example. So it will be persisted.

Related