project-mirai / mirai-console-plugin-template

Template for Mirai Console plugins
GNU Affero General Public License v3.0
67 stars 17 forks source link

idea的kotlin插件更新后出现两个错误 #7

Closed Mjx121418 closed 2 years ago

Mjx121418 commented 3 years ago

刚才idea的kotlin插件自动更新了,重启idea之后再打开这个项目就多了两个错误,分别是 Object 'MyPluginMain' is not abstract and does not implement abstract base class member public abstract fun getParentPermission(): Permission defined in net.mamoe.mirai.console.plugin.jvm.KotlinPlugin 和 Inherited platform declarations clash: The following declarations have the same JVM signature (getParentPermission()Lnet/mamoe/mirai/console/permission/Permission;): fun (): Permission defined in org.example.my.plugin.MyPluginMain fun getParentPermission(): Permission defined in org.example.my.plugin.MyPluginMain

Screen Shot 2021-02-27 at 23 12 18
Him188 commented 3 years ago

请 File -> Clear Caches and Restart