So I am using Robotium and my test class is extending the ActivityInstrumentationTestCase2
class. I have imported the v7 support library in my main project and also in the test project as libraries.
Now what I don't understand is that the test class is working when I change the class under test to extend Activity
but when I change it to ActionBarActivity
it returns a NoClassDefFoundError
.
Am I missing anything?
Here is the Log I am getting
04-11 21:32:16.551: E/dalvikvm(23925): Could not find class 'com.example.project.ActivityClass', referenced from method com.example.project.tests.ActivityClass.<init>
I am guessing you are also using Eclipse as well? Can you post more information as well as the code?
. – Loiseloiter