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

Could someone provide some help with answering this question here,

1 Like

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: ‘’, 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.

1 Like

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