Error: Program type already present: org.openqa.selenium.WebDriver$ImeHandler


#1

Could someone provide some help with answering this question here, https://stackoverflow.com/questions/50795917/agpbi-kinderror-textprogram-type-already-present-org-openqa-selenium


#2

I am trying to setup Appium for my gradle based Android project but same error as above, can’t find any workaround.These are the dependencies I have added to 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’
Running assembleDebug results in this error,

AGPBI: {“kind”:“error”,“text”:“Program type already present: org.openqa.selenium.WebDriver$ImeHandler”,“sources”:[{}],“tool”:“D8”}
Some SO post suggest there is a conflict in gradle dependencies, I tried excluding a few based on the result of

/gradlew -q dependencies mobile:dependencies --configuration compile
but no avail . Any hints would be appreciated.


#3

Hi, did you solve your problem?
I have the same one and I cant solve it…