koltin顶级函数的单元测试

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’

猜你喜欢

转载自blog.csdn.net/github_37610197/article/details/128397393