我最近升级到Android Studio 3.1,在构建我的Kotlin与Java项目时,我收到了以下警告。
内部类注释缺少相应的EnclosingMember注释。这些内部类注释将被忽略。
消息{kind=WARNING, text=内部类注释缺少相应的EnclosingMember注释。这些内部类注释将被忽略。, sources=[未知源文件]}
这是我的Gradle详细信息。
android {
compileSdkVersion 27
//buildToolsVersion '27.0.3'
defaultConfig {
minSdkVersion 16
targetSdkVersion 27
applicationId "org.myapp"
versionCode generateVersionCode()
//...
multiDexEnabled true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
它没有直接指示我问题所在。我如何定位有问题的代码?