Android Robotium NoClassDefFoundError

后端 未结 6 1904
一生所求
一生所求 2021-01-04 09:51

I was just trying to use Robotium in an Android JUnit Test, but the Testing always fails with an error:

java.lang.NoClassDefFoundError: com.jayway.android.robotium.s

6条回答
  •  旧时难觅i
    2021-01-04 10:06

    I had the same problem today. I solved by importing the jar into the libs directory of the test project and then adding it to the Build Path Libraries:

    TestProject Properties -> Java Build Path -> Libreries -> Add JARs... -> TestProject/libs/robotium-solo-3.1.jar

提交回复
热议问题