title: Using Gradle with an existing Android project
body: <p>I have an existing Android project with the following structure:</p>
  
  <pre><code>- ProjectName
  -- AndroidManifest.xml
  -- local.properties
  -- project.properties
  
  -- assets
  -- libs    (containing all jars)
  -- modules (containing all library projects my project depends on)
  -- res
  
  -- src
  ---- com/namespace/projectname (all my classes including main activity are here)
  </code></pre>
  
  <p>I haven't been using any specific build system to build my project other than the one provided by default with the Android Studio IDE (though the project was originally created with IntelliJ CE.</p>
  
  <p>I would like to use Gradle with the android plugin and do some work on my build process.
  I have tried several configurations in order to achieve this and have failed to complete a successful build every time.</p>
  
  <p>What's the recommended approach in this scenario? should I change my project structure? or is it possible to configure gradle using the existing structure?</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks!</p>