Accidental override: The following declarations have the same JVM signature (getWindow()Landroid/vie

Posted 彬sir哥

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Accidental override: The following declarations have the same JVM signature (getWindow()Landroid/vie相关的知识,希望对你有一定的参考价值。

在Activity下声明Window,居然提示:

Accidental override: The following declarations have the same JVM signature (getWindow()Landroid/view/Window;):


解释:说的是超类中已经声明了这个window,所以只要将window这个对象名重命名即可
改为:

var mWindow: Window? = null

以上是关于Accidental override: The following declarations have the same JVM signature (getWindow()Landroid/vie的主要内容,如果未能解决你的问题,请参考以下文章

The Accidental DBA:Troubleshooting

The Accidental DBA:SQL Server Backup

The Accidental DBA:Troubleshooting Performance

Protect object from accidental deletion

annotation:@Override出现The method of type must override asuperclass解决方案

解决:target overrides the `GCC_PREPROCESSOR_DEFINITIONS`