title: How do I use Clojure in Android Studio using Graclj?
body: <p>My ultimate goal is to be able to write Clojure apps for Android, using Android Studio and Cursive. I started with leiningen but found out that it is a build system that is independent of what Andoid Studio uses ie Gradle. So I tried leiningen with Intellij, but couldn't get Android deploys to work except from the command line. Since I wanted to integrate with Android Studio, I decided to try Graclj: <a href="https://github.com/graclj/graclj" rel="nofollow">https://github.com/graclj/graclj</a> which is a Gradle plugin for Clojure.</p>
  
  <p>I can get the Graclj tutorial running in Android Studio, as per this guide:
  <a href="https://github.com/graclj/learning-graclj/tree/learning-0.1.0" rel="nofollow">https://github.com/graclj/learning-graclj/tree/learning-0.1.0</a></p>
  
  <p>However:</p>
  
  <ul>
  <li>Graclj expects the Clojure src and built classes and jars to be in the root project</li>
  <li>Android Studio expects src and classes to be in the app subproject</li>
  <li>After the tutorial I end up with separate Gradle build tasks for Graclj and Android Studio but I don't know how to integrate them</li>
  </ul>
  
  <p>So, can anyone suggest a way that I can hook into Andoid Studio's build process?</p>
  
  <ul>
  <li>Do I need to change some settings to the Graclj plugin to do this? If so, how?</li>
  <li>Do I need to change some Android Studio plugin settings?</li>
  <li>Do I need to add/change something in the Gradle build scripts?</li>
  <li>Am I heading down a dead end?  ;-)</li>
  </ul>
  
  <p>I have looked at the Android Studio build process: <a href="http://developer.android.com/tools/building/configuring-gradle.html" rel="nofollow">http://developer.android.com/tools/building/configuring-gradle.html</a>
  but I don't know enough about Gradle to know what I'm supposed to be doing here.</p>
  
  <p>If I need to supply any more info, just ask.</p>
  
  <p>Any help appreciated!</p>