Android Robotium NoClassDefFoundError

后端 未结 6 1940
一生所求
一生所求 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条回答
  •  清歌不尽
    2021-01-04 10:08

    Had the same issue on SDK 17. Adding the robotium jar to lib and exporting helped. Also had to change the deprecated super call in the constructor from super(String,Class) to super(Class) to make it work.

提交回复
热议问题