File —> Settings —> Editor —> Inlay Hints —> Kotlin
勾选
Show local variable type hints
启用前
启用后
补充知识:Android Studio 编译: Program type already present: XXX 解决方案
情况1:个例
build.gradle 中
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
//
}
改成
dependencies {
//目前最新版【2