Appium in Android Studio 7.3.0 Setup and Duplicate Class Error Fix

Channel:
Subscribers:
13,000
Published on ● Video Link: https://www.youtube.com/watch?v=sAWDy3UHSZY



Duration: 6:18
2,642 views
45


I hope this saves some time for a few people. I've spent the last few days on this issue and found a few devs in the same position across multiple forums.

*NOTE*
If you previously had other dependencies under app/lib that you deleted, you may get a duplicate class error saying that a dependency is conflicting with itself in a folder under app/build/intermediate....output/out.jar. Just delete the jettified version of the previous .jars.

This video is intended to fix 3 main errors with the 7.3.0 Appium release in android studio:

1) Duplicate class org.apache.commons.logging.Log found in modules commons-logging-1.2.jar (commons-logging:commons-logging:1.2) and spring-jcl-5.1.9.RELEASE.jar

or

Duplicate class org.openqa.selenium.WebDriver found in modules jetified-java-client-7.3.0.jar (java-client-7.3.0.jar ) and jetified-selenium-api-3.141.59.jar (selenium-api-3.141.59.jar)

2) More than one file was found with OS independent path 'META-INF/versions/9'

3)trouble writing output:
Too many field references: 131000; max is 65536.
You may try using --multi-dex option.







Tags:
appium
android
android studio
selenium
duplicate class error
version 7.3.0
working may 2020
how to setup appium
java
jar