appium / appium/java-client

Problem running Appium Scripts on Android

Open
#1,151 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.3k
Forks
752
Avg merge
6d 21h
Merged PRs (30d)
8

Description

The problem

I get following error in Eclipse while running Appium scripts for Android:
java.lang.NoSuchMethodError: org.openqa.selenium.remote.http.HttpClient$Factory.createDefault()Lorg/openqa/selenium/remote/http/HttpClient$Factory;

the code for the line where error occurs looks like this:
driver = new AndroidDriver(new URL(“http://0.0.0.0:4723/wd/hub”), cap);

I tried different jar versions for the libraries but with no success.

Can someone please help me out in this

Thanks,
Prashant

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the AndroidDriver construction in the issue and reproduce the NoSuchMethodError in Eclipse. Inspect the Selenium and Appium JAR versions used by the project and compare their HttpClient.Factory APIs. Done means the sample Android script starts without this linkage error using a compatible dependency set.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.