title: Success in running appium code from Android Studio?
body: <p>Has anyone successfully able to run appium test from Android Studio ? I would appreciate if you could pass on to me a working sample of it.</p>
  
  <p>I have been trying to get the setup running for over two weeks now. On trying to run test the build fails at preDexDebug step with below error</p>
  
  <pre><code>trouble processing "javax/xml/XMLConstants.class"
  Ill-advised or mistaken usage of a core class (java.* or javax.*) when not building a core library. This is often due to inadvertently including a core library file in your application's project, when using an IDE (such as Eclipse). If you are sure you're not intentionally defining a core class, then this is the most likely explanation of what's going on.
  However, you might actually be trying to define a class in a core namespace, the source of which you may have taken, for example from a non-Android virtual machine project. This will most assuredly not work. At a minimum, it jeopardizes the compatibility of your app with future versions of the platform.
  It is also often of questionable legality. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine distribution, as opposed to compiling an application -- then use the \"--core-library\" option to suppress this error message.
  .......... and the error goes on.
  </code></pre>
  
  <p>I tried using the --core-library option. however the error still persists.</p>
  
  <p>I am making use of maven to gather the dependencies for appium.</p>
  
  <pre><code>compile 'io.appium:java-client:3.2.0'
  </code></pre>
  
  <p><strong>My primary question</strong>: is appium and its dependencies compatible to run with Android Studio? Because it runs pretty smooth on Eclipse</p>
  
  <p>Commenting <em>io.appium</em> dependency solve the mentioned build error, but I have to comment my tests.</p>
  
  <p>After exhausting my own knowledge, I read a couple of posts on stackoverflow and other internet resources around my problem, but there is no concrete solution. It is more of a hit-and-try mechanism saying "this might work". I tried them, but with no success.</p>
  
  <p>Hence, I would like to know</p>
  
  <ol>
  <li>Firstly, if appium and its dependencies work very well with Android Studio</li>
  <li>A zip of working solution (if possible)</li>
  </ol>
  
  <p>Any help is much appreciated.</p>