- Operating system: Windows 11 64bits
- IDE name and flavor/env:
Android Studio Meerkat Feature Drop | 2024.3.2
Build #AI-243.25659.59.2432.13423653, built on April 29, 2025
Runtime version: 21.0.6±13368085-b895.109 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 8192M
Cores: 32
Registry:
ide.instant.shutdown=false
ide.experimental.ui=true
terminal.new.ui=true
Non-Bundled Plugins:
com.intellij.marketplace (243.25659.59)
com.genymotion.idea (2.0.3)
com.knziha.vectorpathtweaker (1.9.1)
Key Promoter X (2024.2.2)
com.intellij.plugins.vscodekeymap (243.21565.122)
com.vscode.jetbrainssync (1.0.18)
com.dsoftware.ghtoolbar (2025.1.2)
com.zanon.android.adb.adb-plugin (1.4.1)
com.az4mxl.plugin.import-image (1.0.1)
me.uyt.build.variant.selector (1.0.13)
com.mistamek.drawablepreview.drawable-preview (1.1.6)
com.intellij.settingsSync (243.25659.39)
org.sonarlint.idea (10.23.0.81344)
GsonBuilder().registerTypeAdapter(PlayIntegrityCheck::class.java, object : JsonSerializer<PlayIntegrityCheck> {
override fun serialize(src: PlayIntegrityCheck, type: Type, context: JsonSerializationContext): JsonElement {
return JsonObject().apply {
//...
}
}
})
With this code, I am getting this suggestion: Functional interface implementations should use lambda expressions kotlin:S6516
But when I apply the recommendation, the app crashes with IllegalArgumentException.
Since this recommendation does not work well with Gson and Kotlin, you need to take this in consideration.
Thanks.