UiAutomator 2.0 and Eclipse

戏子无情 提交于 2019-12-13 15:56:42

问题


Is there any way to compile UiAutomator 2.0 with Eclipse and Ant?

I have added the android.jar and uitautomator.jar files from Android-23 but to no avail. Eclipse still does not see UiAutomator 2.0 specific methods like UiObject2.

I have also attempted to build a .jar file with Ant in Gradle which generates the required .jar file but only works for UiAutomator 1.0. I used the method detailed here.

I know Android now officially only supports Android Studio+Gradle now but my setup requires the usage of a standalone uiautomator.jar file that Ant builds, which is not supported (at least as far as I know) with Android Studio and Gradle.

Will appreciate any push in the right direction.

来源:https://stackoverflow.com/questions/32853211/uiautomator-2-0-and-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!