是否需要覆盖注解 - Kotlin

Override annotation required and not - Kotlin

相关:

我已经尝试过 Dhaval Patel 的解决方案并得到报告说它没有覆盖我的解析器中的任何内容。 省略覆盖注释报告它隐藏了超级方法并且需要覆盖。我的解析器有问题吗?

文档如何实现该方法(无法编译) https://developer.android.com/training/basics/intents/result

我如何只收到解析器警告 - 什么都不覆盖,覆盖冗余

override fun onActivityResult(requestCode:Int, resultCode:Int, data:Intent?) 

我如何得到编译错误 - 需要覆盖注释:

fun onActivityResult(requestCode:Int, resultCode:Int, data:Intent?)

多亏byxor的提示,我查看了我的build.grade

我的 IDE (Android Studio) 报告其 Kotlin 版本和文档中的版本不匹配。我已经升级到 1.3.11,它通过识别覆盖注释的需要解决了这个问题。