title: Appium - Android Hybrid app
body: <p>I see console 'driver null' error after executing test script</p>
  
  <p><strong>Script:</strong></p>
  
  <pre><code>capabilities.setCapability("appium-version", "1.4.0");
  System.out.println("&lt;&lt;&lt; Detects android device / emulator &gt;&gt;&gt;");
  capabilities.setCapability("deviceName","New1");
  capabilities.setCapability("platformVersion", "4.4.2");
  capabilities.setCapability("platformName","Android");
  capabilities.setCapability("autoWebview","true");
  capabilities.setCapability("automationName","Appium");
  //capabilities.setCapability("newCommandTimeout", "180");
  capabilities.setCapability("app", "com.android.launcher");
  capabilities.setCapability("app", app.getAbsolutePath());
  capabilities.setCapability("appActivity", "com.sciit.mat");
  driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"),capabilities);
  </code></pre>
  
  <p><strong>Console Error:</strong></p>
  
  <pre><code>&lt;&lt;&lt; Detects android device / emulator &gt;&gt;&gt;
  &lt;&lt;&lt; Utlizes remote webdriver &gt;&gt;&gt;
  Driver in App screen : null
  FAILED: sampletestmethod
  java.lang.NoSuchMethodError: org.openqa.selenium.remote.ErrorHandler.&lt;init&gt;(Lorg/openqa/selenium/remote/ErrorCodes;Z)V
  at io.appium.java_client.AppiumDriver.&lt;clinit&gt;(AppiumDriver.java:46)
  at com.sci.matapp.sampleScript1.TestScript1.sampletestmethod(TestScript1.java:39)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
  at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
  at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816)
  at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124)
  at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
  at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
  at org.testng.TestRunner.privateRun(TestRunner.java:773)
  at org.testng.TestRunner.run(TestRunner.java:623)
  at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
  at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
  at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
  at org.testng.SuiteRunner.run(SuiteRunner.java:261)
  at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
  at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
  at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
  at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
  at org.testng.TestNG.run(TestNG.java:1018)
  at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:112)
  at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205)
  at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:176)
  ===============================================
  Default test
  Tests run: 1, Failures: 1, Skips: 0
  ===============================================
  
  ===============================================
  Default suite
  Total tests run: 1, Failures: 1, Skips: 0
  ===============================================
  [TestNG] Time taken by org.testng.reporters.XMLReporter@1064425: 521 ms
  [TestNG] Time taken by org.testng.reporters.JUnitReportReporter@6ea0c6: 508 ms
  [TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 131 ms
  [TestNG] Time taken by org.testng.reporters.jq.Main@899482: 746 ms
  [TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@d17bee: 551 ms
  [TestNG] Time taken by org.testng.reporters.EmailableReporter2@16432db: 81 ms
  </code></pre>
  
  <p><strong>NOTE: I have utilized below jar files:</strong></p>
  
  <ul>
  <li>android, </li>
  <li><p>selenium-java-2.47.1</p></li>
  <li><p>java client2.2.0</p></li>
  <li><p>selenium-java-client-driver-1.0.1</p></li>
  <li><p>selenium-server-standalone-2.47.1</p></li>
  <li>selendroid-standalone-0.10.0-with-dependencies</li>
  </ul>
  
  <p>Can some one help if i miss anything.
  Thanks,</p>