I just upgraded to 0.5.2. The issue still exists.
It compiles fine, but Android Studio still can't recognize the espresso imports. E.g. this one can't be found. import static com.google.android.apps .common.testing.ui.espresso.Espresso.onData; However, it can find this one without problems: import org.hamcrest.Matcher; On Wednesday, March 12, 2014 5:59:31 PM UTC-4, Xavier Ducrohet wrote: > > oh yeah this is a known issue, and should be fixed in 0.5.2 > > > On Wed, Mar 12, 2014 at 2:45 PM, Nicolas Milliard > <[email protected]<javascript:> > > wrote: > >> I got news. Apparently the AAR was not the issue at all. Sorry for that >> misleading. >> >> So, basically my issue is that AndrioidStudio does not use the >> `androidTestCompile` scope. If I use the gradle command line, everything >> works correctly. >> When I look at the source code via AndroidStudio, the IDEA shows me the >> imported classes as error, as if I didn't add them as dependency. >> >> I hope this make my bug clearer. >> >> Nicolas >> >> >> On Tuesday, March 11, 2014 5:21:53 PM UTC-7, Nicolas Milliard wrote: >>> >>> Xavier, I have created a new simple project from Android studio that >>> reproduce the issue. See attached Gradle project. >>> >>> >>> On Friday, March 7, 2014 5:51:57 PM UTC-8, Xavier Ducrohet wrote: >>> >>>> I haven't changed anything in there so this should work but I'll have >>>> to double check Monday. >>>> >>>> https://code.google.com/p/android/issues/detail?id=66841 >>>> >>>> >>>> On Fri, Mar 7, 2014 at 4:00 PM, Nicolas Milliard <[email protected]>wrote: >>>> >>>>> Hello, >>>>> >>>>> I am having an issue using androidTestCompile with AAR dependencies >>>>> (Jar deps are working) using: >>>>> * Gradle 1.11 >>>>> * Gradle Android Tool plugin 0.9.0 >>>>> >>>>> How to reproduce >>>>> -> Use any AAR dependency with the '"androidTestCompile" scope , >>>>> like androidTestCompile 'com.jakewharton.espresso:espresso:1.1-r2' >>>>> >>>>> Actual result >>>>> -> The java classes are not accessible from the android test source >>>>> code >>>>> >>>>> When did this bug start happening? >>>>> -> I noticed it starting from 0.9.0, might have been present sooner >>>>> though. >>>>> >>>>> When does the bug occur? >>>>> -> Always >>>>> >>>>> Describe any workarounds you have found >>>>> -> Change the scope to "compile" solves it but not an appropriate >>>>> solution >>>>> >>>>> -- >>>>> 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. >>>>> >>>> >>>> >>>> >>>> -- >>>> Xavier Ducrohet >>>> Android SDK Tech Lead >>>> Google Inc. >>>> http://developer.android.com | http://tools.android.com >>>> >>>> Please do not send me questions directly. Thanks! >>>> >>> -- >> 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] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc. > http://developer.android.com | http://tools.android.com > > Please do not send me questions directly. Thanks! > -- 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.
