dependencies compiled using androidTestCompile are not recognized

80 Views Asked by At

I am trying to integrate robotium-solo 5.5.4 into my project.

If i run this line:

compile 'com.jayway.android.robotium:robotium-solo:5.5.4'

then everything is fine, however if I run this line:

androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.5.4'

it is like the dependency is not there.

What can I do to fix the problem ?

1

There are 1 best solutions below

0
asanchezyu On

Try

testCompile 

instead of

androidTestCompile