错误信息如下:
java.lang.NoClassDefFoundError: com.jayway.android.robotium.solo.Solo
在eclipse中进行如下设置
- “Properties > Java Build Path > Libraries”, delete “Android Dependencies” in my test project.
- “Properties > Java Build Path > Libraries”, delete two robotium jar and click “Add JARs” to re-import robotium jar in my test project.
- “Properties > Java Build Path > Order and Export”, check two checkbok of robotium jar (and othera you want exported.)
- Clean my test project.