1.反射
2.遇到的错误:
问题
Kotlin reflection implementation is not found at runtime. Make sure you have kotlin-reflect.jar in the classpath
解决:
The problem is a missing dependency in build.gradle.
Just add the following to fix.
dependencies {
…
implementation “org.jetbrains.kotlin:kotlin-reflect”
…
}
问题:

解决
androidTestImplementation ‘org.mockito:mockito-inline3.12.4’
本文讲述了在Kotlin项目中遇到的运行时反射问题,通过在build.gradle中添加kotlin-reflect依赖来解决,同时提及了AndroidTest中mockito-inline的依赖配置。
3520

被折叠的 条评论
为什么被折叠?



