美文网首页
Ambiguous method call: both '' a

Ambiguous method call: both '' a

作者: 坐怀灬不乱 | 来源:发表于2021-05-19 17:24 被阅读0次

错误日志:Ambiguous method call: both '你的类' and '你的类' match
此问题是Kotlin会自动生成变量的get和set方法,然后你自己定义了这个变量的get或者set方法,但是返回的不是这个变量,会产生此问题

修改方法:将你手动写的get或者set方法名字修改一下就可以了

相关文章

网友评论

      本文标题:Ambiguous method call: both '' a

      本文链接:https://www.haomeiwen.com/subject/cynpjltx.html