title: Adding external .jar to androidstudio project
body: <p>I've added the external library <code>bsh-2.0b4.jar</code> to an android project in android-studio by going into <code>Project structure -&gt; Modules -&gt; myProject -&gt; Tab-Dependencies -&gt; + Sign</code> and then add the .jar file.
  I also tried to copy the file into the /libs directory and then rightclick in studio and <code>add as library...</code> (both methods independently!!). I inserted the following code as a test</p>
  
  <pre><code>  import bsh.Interpreter;
    ...
    Interpreter interpreter = new Interpreter();
    interpreter.eval("result = (7+21*6)/(32-27)");
    return interpreter.get("result").toString();
  </code></pre>
  
  <p>I compile with the buildin button in android.
  The build.gradle looks like:</p>
  
  <pre><code>  buildscript {
      repositories {
        mavenCentral()
      }
      dependencies {
       classpath 'com.android.tools.build:gradle:0.5.+'
      }
    }
    apply plugin: 'android'
  
    repositories {
      mavenCentral()
    }
  
    android {
       compileSdkVersion 17
       buildToolsVersion "17.0.0"
  
       defaultConfig {
          minSdkVersion 9
          targetSdkVersion 17
       }
    }
  
    dependencies {
       compile 'com.android.support:support-v4:13.0.+'
    }
  </code></pre>
  
  <p>But when I compile everything I receive the error</p>
  
  <pre><code>  Gradle: error: package bsh does not exist
    Gradle: error: cannot find symbol class Interpreter
  </code></pre>
  
  <p>Can anyone help me pls?</p>