我遇到了一个问题,即我的 Android 仪器测试未被发现。相反,我得到以下内容:
Started running tests
Test running failed: Instrumentation run failed due to
'kotlin.UninitializedPropertyAccessException'
Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'
Empty test suite.
最佳答案
我发现了这个问题,这是因为我有一个带有lateinit注释的属性没有被注入(inject)
关于java - 测试运行失败: Instrumentation run failed due to 'kotlin.UninitializedPropertyAccessException' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45697557/