Skip to content Skip to sidebar Skip to footer

Appium Test Android

Automating Test using Appium I am Following This Two Tutorials https://www.youtube.com/watch?v=n8QqYAXKWEU https://www.youtube.com/watch?v=AlBrQ_-phsQ org.gradle.execution.Multipl

Solution 1:

First Time I miss to add two library's in dependency

dependencies 
{
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-vector-drawable:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.github.armcha:SpaceNavigationView:1.6.0'

implementation files('libs/byte-buddy-1.8.15.jar')
implementation files('libs/commons-exec-1.3.jar')
implementation files('libs/guava-25.0-jre.jar')
implementation files('libs/java-client-7.0.0.jar')
implementation files('libs/okhttp-3.11.0.jar')
implementation files('libs/okio-1.14.0.jar')

implementation 'com.android.support:multidex:1.0.3'//missed
implementation files('libs/client-combined-3.141.59.jar')
implementation files('libs/client-combined-3.141.59-sources.jar')

}

Then After Sync the Project and getting erro like

AGPBI: {"kind":"error","text":"Program type already present: org.openqa.selenium.WebDriver$Window","sources":[{}],"tool":"D8"}

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

When I add the "Appium Jar files for Java" plugin (java-client-7.0.0.jar) I checked that it already contains the classes contained in the "Latest Appium Client Library" (selenium-java-3.141.59) as described in some tutorials on the internet.

To solve the problem do:

  1. Delete the java-client-7.0.0.jar file from your project

  2. Open java-client-7.0.0.jar with 7zip and delete the "org /" folder and all subfolders.

  3. Include the updated java-client-7.0.0.jar in your project. Rebuild project

Post a Comment for "Appium Test Android"