Exception in thread "main" java.lang.NoSuchMethodError:

I have to select the field and I have to pass some no so while doing that I am getting this error Program :

package
First_Test;

import
java.io.File;

import
java.net.MalformedURLException;

import
java.net.URL;

import
java.util.concurrent.TimeUnit;

import
io.appium.java_client.MobileBy;

import
io.appium.java_client.android.AndroidElement;

import
org.openqa.selenium.remote.DesiredCapabilities;

import
io.appium.java_client.android.AndroidDriver;

public class
WorkingSCGT {

private
static AndroidDriver driver;

      public static void main(String[] args)

throws MalformedURLException, Exception {

               // TODO Auto-generated method

stub

                         File app = new

File(“C:\Users\ADMIN\Documents\scgt.apk”);

DesiredCapabilities
cap = new DesiredCapabilities();

cap.setCapability(“appWaitPackage”,
“com.directory.scgt”);

cap.setCapability(“appWaitActivity”,
“com.directory.scgt.Activity.SplashScreenActivity”);

cap.setCapability(“deviceName”, “vivo 1713”);

cap.setCapability(“platformVersion”, “6.0”);

cap.setCapability(“platformName”, “Android”);

cap.setCapability(“app”,
app.getAbsolutePath());

cap.setCapability(“autoGrantPermissions”, “true”);
driver = new AndroidDriver(new URL(“http://0.0.0.0:4723/wd/hub”),cap);
driver.manage().timeouts().implicitlyWait(80,
TimeUnit.SECONDS);
((AndroidElement) driver.findElement(MobileBy.id(“com.directory.scgt:id/numberEdit”))).setValue(“1234”);

Getting this Error:

Sep 19, 2017 10:23:20 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel’s Law holds true on the remote end
Sep 19, 2017 10:24:28 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Falling back to original OSS JSON Wire Protocol.
Sep 19, 2017 10:25:26 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Falling back to straight W3C remote end connection
Exception in thread “main” java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)V
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:103)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:128)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:141)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:87)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:111)
at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:72)
at First_Test.WorkingSCGT.main(WorkingSCGT.java:44)Uploading…

Please share solution. I am facing same issue.

I am facing this issue for appium server v1.8.1
FAILED: SetUp
java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)V
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:253)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)

please help.