关于kotlin的属性委托,报错的,实际原因剖析

报错:Property delegate must have a 'getValue(SecurityCheckView, KProperty*>)' method. None of the following functions are suitable

解决方案:就是在根目录的build.gradle中改变 kotlin的插件版本

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin: k o t l i n v e r s i o n " 但是要跟下面的 k o t l i n 版本保持一致 i m p l e m e n t a t i o n " o r g . j e t b r a i n s . k o t l i n : k o t l i n − s t d l i b : kotlin_version" 但是要跟下面的kotlin版本保持一致 implementation "org.jetbrains.kotlin:kotlin-stdlib: kotlinversion"但是要跟下面的kotlin版本保持一致implementation"org.jetbrains.kotlin:kotlin−stdlib:kotlin_version"

不一致的话,就会报一些错误

相关推荐
Kapaseker19 小时前
详解 Compose background 的重组陷阱
android·kotlin
黄林晴20 小时前
Kotlin 2.3.20-RC2 来了!JPA 开发者狂喜,6 大更新一文速览
android·kotlin
糖猫猫cc2 天前
Kite:填充处理器
kotlin·orm·kite
Kapaseker2 天前
一杯美式深入理解 data class
android·kotlin
alexhilton4 天前
端侧RAG实战指南
android·kotlin·android jetpack
Kapaseker5 天前
2026年,我们还该不该学编程?
android·kotlin
子玖6 天前
微信扫码注册登录-基于网站应用
后端·微信·go
Kapaseker6 天前
一杯美式搞懂 Any、Unit、Nothing
android·kotlin
子玖6 天前
实现微信扫码注册登录-基于参数二维码
后端·微信·go
Kapaseker7 天前
一杯美式搞定 Kotlin 空安全
android·kotlin