我运行了此处列出的迁移
运行测试后,出现java.lang.RuntimeException: java.lang.ClassNotFoundException: org.robolectric.android.internal.ParallelUniverse内部堆栈跟踪错误。
有人遇到过这个问题,知道如何解决吗?
添加了Gradle依赖项:
testImplementation ("org.robolectric:robolectric:4.1")
testImplementation "org.robolectric:shadows-httpclient:4.1"
testImplementation "org.robolectric:shadows-multidex:4.1"
Run Code Online (Sandbox Code Playgroud)