문제

I'm currently following this tutorial on using Robolectric for Eclipse. And I can't seem to make it work. It keeps throwing initializationError and in the Failure Trace it has a java.lang.noClassDefFoundError

enter image description here

The tutorial seems like it's not enough. Or updated.

도움이 되었습니까?

해결책

I found the solution. I downloaded the wrong Robolectric jar file. You have to use the jar-with-dependencies.jar found here. Then everything went well.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top