I ran into a similar problem as 
here: 
http://stackoverflow.com/questions/22303950/robotium-test-case-with-gradle-0-9-and-android-studio-migration-to-gradle-0-9-f

My test project ran, but since I updated I get a VerifyError and can't run 
my tests. I tried tracking down the problems and I have found out, that as 
soon as I use Solo in my code, it will produce a VerifyError. All I have to 
add to produce the error is the following in my class that extends 
ActivityInstrumentationTestCase2:

    protected Solo solo;
>     @Override
>     protected void setUp() throws Exception {
>         super.setUp();
>         solo = new Solo(getInstrumentation(), getActivity());
>     }


As well I get a lot of errors like these for many many classes in my app.

 15740               dalvikvm  W  Class resolved by unexpected DEX: 
> Lxyz/SomeView;(0xa6a60ce8):0x98c16000 ref 
> [Landroid/support/v4/view/ViewPager$OnPageChangeListener;] Landroid/support/
>                                   
> v4/view/ViewPager$OnPageChangeListener;(0xa6a60ce8):0x990bb000
>  15740               dalvikvm  W  (Lxyz/SomeView; had used a different 
> Landroid/support/v4/view/ViewPager$OnPageChangeListener; during 
> pre-verification)
>  15740               dalvikvm  I  Failed resolving Lxyz/SomeView; 
> interface 666 'Landroid/support/v4/view/ViewPager$OnPageChangeListener;'
>  15740               dalvikvm  W  Link of class 'Lxyz/SomeView;' failed
>  15740   athPackageInfoSource  W  Cannot load class. Make sure it is in 
> your apk. Class name: 'xyz/SomeView'. Message: xyz/SomeView
>  15740   athPackageInfoSource  W  java.lang.ClassNotFoundException: 
> xyz/SomeView



Probably running into the same problem as 
here? 
http://stackoverflow.com/questions/23403092/java-lang-verifyerror-when-running-android-tests-with-testcoverageenabled-true
This here might be related 
too: 
https://groups.google.com/forum/#!searchin/adt-dev/java.lang.VerifyError/adt-dev/BiYV4L4_YS4/gVf_RArHdxkJ

Hope we can get this resolved soon.

Cheers,
Patrick

-- 
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.

Reply via email to