Closed GoogleCodeExporter closed 9 years ago
If I remove these dependencies from the test project:
<dependency>
<groupId>com.jayway.maven.plugins.android.generation2.samples.libraryprojects</groupId>
<artifactId>libraryprojects-aar-from-aar</artifactId>
<version>${project.version}</version>
<type>aar</type>
</dependency>
<dependency>
<groupId>com.jayway.maven.plugins.android.generation2.samples.libraryprojects</groupId>
<artifactId>libraryprojects-apklib-from-apklib</artifactId>
<version>${project.version}</version>
<type>apklib</type>
</dependency>
And remove the generic from this class definition:
public class MainActivityTest extends
ActivityInstrumentationTestCase2<MainActivity>
Then all tests pass.
I think it would be preferred if we did not have to remove the generic from
the ActivityInstrumentationTestCase2.
The reason it has to be removed is because the compiler can't resolve the
parent of the MainActivity class.
There is either:
1. no AbstractActivityUsingResources in the classpath (provided scope aar)
2. AbstractActivityUsingResources embedded in the test APK; causing conflict
(compile scope aar)
I'll create a pull request anyway for review
Original comment by malac...@gmail.com
on 22 Feb 2014 at 6:46
We are no longer using the issue tracking system on Google Code. Please refile
this issue on https://github.com/jayway/maven-android-plugin/issues if you
still have this problem with the latest release of the Android Maven Plugin
Original comment by mosa...@gmail.com
on 19 May 2014 at 4:20
Original issue reported on code.google.com by
malac...@gmail.com
on 22 Feb 2014 at 6:45