Skip to content Skip to sidebar Skip to footer

Unit Testing Android With Maven

I have a question about a android project that is build with Maven, We made it run our activity tests, but now we need it to run unit tests. The unit test is in the same project as

Solution 1:

I faced the same problem. It was caused by misconfiguration in the parent pom. You have to remove the scope tag in the dependencyManagement section.

Like this:

<dependencyManagement><dependencies><dependency><groupId>com.google.android</groupId><artifactId>android</artifactId><version>2.2.1</version></dependency><dependency><groupId>com.google.android</groupId><artifactId>android-test</artifactId><version>2.2.1</version></dependency></dependencies></dependencyManagement>

Solution 2:

Post a Comment for "Unit Testing Android With Maven"