title: Pull jars to libs folder from other directory before building the Android application
body: <p>I have an Android project, that is dependant on an external jar file, i.e. <code>A.jar</code>.</p>
  
  <p>I have configured my android <code>build.gradle</code> to first build the project that builds <code>A.jar</code>. Then the Android build proceeds.</p>
  
  <p>What is the best way to copy the jar from its build folder into the android projects lib folder, after the jar builds?</p>
  
  <p>So the build should proceed as...</p>
  
  <blockquote>
    <p>Build Jar > Copy Jar to Libs > Build Android Project.</p>
  </blockquote>
  
  <p>I don't use Android Studio, so I configure my project only through gradle config file manipulation.</p>
  
  <p>The project that currently builds the jar is already listed as a dependency in <code>app/build.gradle</code></p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 26
      defaultConfig {
          applicationId "saf.mobilebeats2"
          minSdkVersion 21
          targetSdkVersion 26
          versionCode 1
          versionName "1.0"
      }
  
      buildTypes {
          debug {
              applicationIdSuffix ".debug"
              debuggable true
          }
      }
  }
  
  dependencies {
      implementation 'com.android.support.constraint:constraint-layout:1.1.2'
      implementation 'com.android.support:appcompat-v7:26.0.0'
      implementation project(':dawcore')
      // runtime files('../DawCore/build/libs/DawCore.jar')
  }
  </code></pre>