I am currently using Android Studio 0.5.8.  Gradle build is setup to 
compile Android app, unit tests, instrumentation tests.  Everything builds 
and runs fine, both on command line and inside AS.

However, in the editor there is a problem.  The editor does not recognize 
any imports for androidTestCompile.  

My build.gradle file has these dependencies:

  // androidTest - Instrumentation test dependencies
  androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.1'
  androidTestCompile 'com.squareup.spoon:spoon-client:1.1.1'
  androidTestCompile 'org.apache.commons:commons-lang3:3.1'
  androidTestCompile 'javax.mail:mail:1.4.7'
  androidTestCompile 'commons-codec:commons-codec:1.7'

androidTest is setup within the gradle script to point to my tests folder 
one step back (same level as app folder):

      androidTest.setRoot('../tests')
      androidTest {
        java { srcDirs = [
            '../tests/src'
        ] }
        manifest.srcFile '../tests/AndroidManifest.xml'
      }

It compiles / assembles the test APK just fine.

The editor doesn't see the import and code completion doesn't work.

<https://lh4.googleusercontent.com/-sR-gsdcSf0Q/U49oBGUUz7I/AAAAAAAAPHA/cDuKzVUreGI/s1600/app_driver.png>
Is this a defect in Android Studio?  Or do I have to select some task / 
profile to get Android Studio to see the imports for both 
androidTestCompile - in addition to the dependencies for the app?

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