Android编程知识
Didn't find class "kotlin.reflect.KProperty"报错
2022-10-16 227 0
简介 Didn't find class "kotlin.reflect.KProperty"
解决方案:请配置kotlin开发环境 参考Kotlin官网
步骤1: 在根目录下的buid.gradle
buildscript {
ext {
kotlinVersion = '1.3.40'
}
dependencies {
......
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
步骤2: 在module目录下的buid.gradle
apply plugin: 'com.android.application' apply plugin: 'kotlin-android' dependencies { ...... implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion" }
最近更新
- NO SQL, or READS SQL DATA in its 错误解决办法
- React中useMemo的简单使用
- Object.prototype.toString.call()方法使用
- android studio导入项目出现的问题:expected reference but got (raw string) @+android:style/Animation.Transluce
- 【Android Studio】强制使用低版本系统出现Google Play requires that apps target API level 29 or higher.
- Didn't find class "kotlin.reflect.KProperty"报错