title: Incorrect package imports
body: <p>I am trying with Automated UI testing, so followed <a href="https://developer.android.com/tools/testing-support-library/index.html" rel="nofollow">this</a>, the strange thing i observed that the google code snippet shows different package imports then mine.</p>
  
  <p>Like for the UiObject class, google imported this</p>
  
  <pre><code>android.support.test.uiautomator.UiObject
  </code></pre>
  
  <p>However, in my code its </p>
  
  <pre><code>com.android.uiautomator.core.UiObject
  </code></pre>
  
  <p>Which results some unidentified method.I have no idea, what i am doing wrong, please help me.</p>
  
  <p>my build.gradle</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 22
      buildToolsVersion "23.0.0 rc1"
  
      defaultConfig {
          applicationId "example.com.automatinguitestingsample"
          minSdkVersion 19
          targetSdkVersion 22
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
  
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:22.2.0'
      androidTestCompile 'com.android.support.test:runner:0.3'
      // Set this dependency to use JUnit 4 rules
      androidTestCompile 'com.android.support.test:rules:0.3'
      // Set this dependency to build and run Espresso tests
      androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2'
      // Set this dependency to build and run UI Automator tests
      androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.1'
      compile files('libs/uiautomator.jar')
  }
  
  android {
      packagingOptions {
          exclude 'LICENSE.txt'
      }
  }
  </code></pre>