我正在尝试为基于Gradle的Android项目设置Appium,但是如上所述收到错误,找不到任何解决方法。这些是我添加到app / build.gradle的依赖项,
compile (group: 'io.appium', name: 'java-client', version: '6.0.0')
{exclude group: 'org.ow2.asm'}
compile group: 'com.android.support.test.uiautomator', name: 'uiautomator-v18', version: '2.1.3'
运行assembleDebug导致此错误,
AGPBI: {"kind":"error","text":"Program type already present: org.openqa.selenium.WebDriver$ImeHandler","sources":[{}],"tool":"D8"}
有些SO帖子暗示gradle依赖项存在冲突,我尝试根据
的结果排除一些/gradlew -q dependencies mobile:dependencies --configuration compile
但无济于事。任何提示都将不胜感激。