Hi,
I have found the problem -- I had
-----
instrumentTest.setRoot('eSpeakTests')
instrumentTest {
java.srcDirs = ['eSpeakTests/src']
}
-----
instead of:
-----
androidTest.setRoot('eSpeakTests')
androidTest {
java.srcDirs = ['eSpeakTests/src']
}
-----
and Android Studio/gradle did not report the mismatch.
Thanks,
- Reece H. Dunn
On Sunday, 1 June 2014 16:04:49 UTC+1, Reece Dunn wrote:
>
> Hi,
>
> I am using the maven version of hamcrest in my tests:
>
> ------
> dependencies {
> androidTestCompile 'org.hamcrest:hamcrest-all:1.3'
> }
> ------
>
> This is a jar file, not an aar file. It worked with the android plugin
> 0.8.+, but with android plugin 0.10.+ running the tests gives:
>
> -----
> /dalvikvm﹕ Unable to resolve superclass of
> Lorg/hamcrest/generator/qdox/ant/AbstractQdoxTask; (134)
> 06-01 15:29:17.865 687-687/com.reecedunn.espeak W/dalvikvm﹕ Link of
> class 'Lorg/hamcrest/generator/qdox/ant/AbstractQdoxTask;' failed
> 06-01 15:29:17.895 687-687/com.reecedunn.espeak
> W/ClassPathPackageInfoSource﹕ Cannot load class. Make sure it is in your
> apk. Class name: 'org.hamcrest.generator.qdox.ant.AbstractQdoxTask'.
> Message: org.hamcrest.generator.qdox.ant.AbstractQdoxTask
> java.lang.ClassNotFoundException:
> org.hamcrest.generator.qdox.ant.AbstractQdoxTask
> at java.lang.Class.classForName(Native Method)
> -----
>
> Any help getting this working would be appreciated.
>
> Thanks,
> - Reece H. Dunn
>
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.