Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instrumentTestCompile dependency doesn't work #30

Closed
GoogleCodeExporter opened this issue Jun 29, 2015 · 1 comment
Closed

instrumentTestCompile dependency doesn't work #30

GoogleCodeExporter opened this issue Jun 29, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. build.gradle

dependencies {
    compile ... // compile dependencies

    instrumentTestCompile 'com.google.android.apps.common.testing:espresso:1.0-SNAPSHOT'
    instrumentTestCompile 'com.google.android.apps.common.testing:testrunner:1.0-SNAPSHOT'
    instrumentTestCompile 'com.google.android.apps.common.testing:testrunner-runtime:1.0-SNAPSHOT'
    instrumentTestCompile 'org.hamcrest:hamcrest-core:1.1'
    instrumentTestCompile 'org.hamcrest:hamcrest-library:1.1'
    instrumentTestCompile 'org.hamcrest:hamcrest-integration:1.1'
    instrumentTestCompile 'com.squareup.dagger:dagger:+'
    instrumentTestCompile 'com.squareup.dagger:dagger-compiler:+'
}

2.
                        I  Could not find method com.google.android.apps.common.testing.testrunner.ExposedInstrumentationApi.execStartActivity, referenced from method com.google.android.apps.common.testing.testrunner.GoogleInstrumentation.
                           execStartActivity
                        W  VFY: unable to resolve virtual method 222: Lcom/google/android/apps/common/testing/testrunner/ExposedInstrumentationApi;.execStartActivity (Landroid/content/Context;Landroid/os/IBinder;Landroid/os/IBinder;Landroi
                           d/app/Activity;Landroid/content/Intent;I)Landroid/app/Instrumentation$ActivityResult;

What is the expected output? What do you see instead?
I have the libs in local maven repo, but they are not bundled with apk.

What version of the product are you using? On what operating system?
1.0-SNAPSHOT

Please provide any additional information below.
I have to replace "instrumentTestCompile" with "compile", otherwise the classes 
are not bundled into apk.

Original issue reported on code.google.com by TomR...@gmail.com on 3 Dec 2013 at 12:31

@GoogleCodeExporter
Copy link
Author

Take a look at the new deployment instructions for gradle here: 
https://code.google.com/p/android-test-kit/wiki/Espresso#Espresso_Setup_Instruct
ions

Original comment by vale...@google.com on 9 Jan 2014 at 7:27

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant