title: Gradle Build Failed, after inserting tess4j.jar in Android Studio 1.5.1
body: <p>Hello swarm intelligence,</p>
  
  <p>I tried inserting the google tesseract OCR in my Android Project for two days. After endless amount of trying I saw the wrapper lib tess4j, but inserting a up-to-date version via gradle compile 'net.sourceforge:tess4j:tess4j:x-x-x' is not possible, so I downloaded the newest .jar file and added it to my Android Studio Project. The Gradle Build worked just fine and I can now use the Classes and methods in my code. But after trying a very simple sample app I got this Error which I don't understand, can someone please explain it to me, and how to solve it?</p>
  
  <pre><code>private static final String TAG = MainActivity.class.getName();
  public Button mStartTesseractBtn;
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      mStartTesseractBtn = (Button) findViewById(R.id.startTesserActBtn);
      mStartTesseractBtn.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              Log.d(TAG, "In OnClick, start reading image...");
              try {
                  Tesseract instance = Tesseract.getInstance();
                  String erg = instance.doOCR(new File("C:\\Users\\UserX\\Desktop\\scrabble-2.bmp"));
                  System.out.println(erg);
              } catch (TesseractException e) {
                  e.printStackTrace();
              }
          }
      });
  
  }
  </code></pre>
  
  <blockquote>
    <p>Information:Gradle tasks [:app:assembleDebug] :app:preBuild UP-TO-DATE
    :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest
    :app:preReleaseBuild UP-TO-DATE
    :app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
    :app:prepareComAndroidSupportDesign2311Library UP-TO-DATE
    :app:prepareComAndroidSupportRecyclerviewV72311Library UP-TO-DATE
    :app:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
    :app:prepareDebugDependencies :app:compileDebugAidl UP-TO-DATE
    :app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig
    UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets
    UP-TO-DATE :app:generateDebugResValues UP-TO-DATE
    :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources
    UP-TO-DATE :app:processDebugManifest UP-TO-DATE
    :app:processDebugResources UP-TO-DATE :app:generateDebugSources
    UP-TO-DATE :app:compileDebugJavaWithJavac
    C:\Users\UserX\AndroidStudioProjects\OCR\app\src\main\java\de\companyX\ocr\MainActivity.java
    Error:(65, 42) error: cannot access BufferedImage class file for
    java.awt.image.BufferedImage not found Error:Execution failed for task
    ':app:compileDebugJavaWithJavac'.</p>
    
    <blockquote>
      <p>Compilation failed; see the compiler error output for details. Information:BUILD FAILED Information:Total time: 2.871 secs
      Information:2 errors Information:0 warnings Information:See complete
      output in console</p>
    </blockquote>
  </blockquote>