This issue often happens after upgrading Android Studio. You can usually fix it with the following steps:
Go to File > Invalidate Caches / Restart… and select Invalidate and Restart. This often resolves issues with the debug view not showing variable details.
In debug mode, right-click on the variable in the “Variables” panel, choose View as… or Show as…, and select “ToString” or “Value” to see the detailed contents.
Make sure ProGuard or R8 obfuscation is not enabled for your debug build. In your build.gradle, ensure you have:
gradle
Apply
buildTypes {
debug {
minifyEnabled false
}
}
Sometimes, using an incompatible JDK version can cause issues. Try switching to a stable JDK version (e.g., JDK 17) in Preferences > Build, Execution, Deployment > Build Tools > Gradle > Gradle JDK.
If none of these steps help, try reinstalling Android Studio.