title: How can I add a JAR in my gradle project?
body: <p>I am using gradle in Android studio for an android project. I have a jar that I downloaded called <code>TestFlightAppLib.jar</code>. This jar isn't present in the maven repository so I can't just put it in my <code>build.gradle</code>. </p>
  
  <p>How can I add this JAR file to my project? I don't see any option to add an external jar to the project. </p>
  
  <p><img src="https://i.stack.imgur.com/YIoKz.png" alt="enter image description here"></p>
  
  <p><strong>Update</strong></p>
  
  <p>This is my complete build.gradle</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.6.+'
      }
  }
  apply plugin: 'android'
  
  repositories {
      mavenCentral()
  }
  
  android {
      compileSdkVersion 18
      buildToolsVersion "18.1.1"
  
      defaultConfig {
          minSdkVersion 8
          targetSdkVersion 18
      }
  
  }
  
  dependencies {
      compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
      compile 'com.android.support:support-v4:18.0.+'
      compile 'com.google.code.gson:gson:2.2.4'
      compile 'com.squareup.retrofit:retrofit:1.2.2'
      compile 'com.github.rtyley:roboguice-sherlock:1.5'
      compile 'org.roboguice:roboguice:2.0'
      compile files('libs/TestFlightLib.jar')
  }
  </code></pre>
  
  <p>This is the error message:</p>
  
  <pre><code>Gradle: Execution failed for task ':MyProject:compileDebug'.
  &gt; Compilation failed; see the compiler error output for details.
  /Users/droid/android/MyProjectProject/MyProject/src/main/java/com/mypkg/ui/activity/MainApplication.java
  Gradle: error: package com.testflightapp.lib does not exist
  </code></pre>
  
  <p>Here is the class:</p>
  
  <pre><code>import com.testflightapp.lib.TestFlight;
  
  
  public class MainApplication  {
  
  }
  </code></pre>