UiAutomator 2.0 and Eclipse

2019-07-13 20:17发布

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.

0条回答
登录 后发表回答