When I run my Android application, I encounter this NoClassDefFoundError
:
03-13 18:06:38.648: E/AndroidRuntime(413): Uncaught handler: thread ma
I just hit and solved this issue - you need to add all of the dependencies in your android project's pom.xml to your test projects pom.xml with a scope as provided
per this bug report: http://code.google.com/p/maven-android-plugin/issues/detail?id=142
e.g.
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.1</version>
<scope>provided</scope>
</dependency>
NoClassDefFoundError
exception is being raised. Basically class definition is not found in your project.
Check the names of the class properly, and if you are using third party library check the name of the class properly and ensure that library is included (Class name is case sensitive).