android - Incorrect package imports -


i trying automated ui testing, followed this, strange thing observed google code snippet shows different package imports mine.

like uiobject class, google imported this

android.support.test.uiautomator.uiobject 

however, in code

com.android.uiautomator.core.uiobject 

which results unidentified method.i have no idea, doing wrong, please me.

my build.gradle

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 dependency use junit 4 rules     androidtestcompile 'com.android.support.test:rules:0.3'     // set dependency build , run espresso tests     androidtestcompile 'com.android.support.test.espresso:espresso-core:2.2'     // set dependency build , 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'     } } 


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -