title: Android Studio reference Library
body: <p>Hey guys I really got a problem I can't solve.</p>
  
  <p>I'm developing an Android application which needs a library I wrote for myself (model.jar). I added it to Android Studio and everything was fine. 
  On some point it just didn't work anymore so I did everything I could do:</p>
  
  <ul>
  <li>removed the not working library from my project</li>
  <li>put the library to the projects /libs directory</li>
  <li>added the libray via Project Structure -> File dependency -> model.jar</li>
  <li>added the jar to the projects .gradle file to compile</li>
  <li>Rebuild Project</li>
  <li>Invalidate Caches and restart</li>
  <li>deleted the projects .iml file and .idea folder and reimported the application</li>
  <li>executed <code>gradlew clean</code> and <code>gradlew assemble</code> from command line</li>
  <li>edit: I did also a Sync Project with Gradle Files</li>
  </ul>
  
  <p>However none of these worked. It still cannot resolve the objects from the jar and I'm just stuck.</p>
  
  <p>Since I am not allowed to post images directly <a href="https://www.dropbox.com/s/sj6ftzyepdp7px0/jars.PNG?dl=0" rel="nofollow">I uploaded it into my dropbox</a></p>
  
  <p>Note that I cannot expand the model.jar as the other libraries that do work.</p>
  
  <p>The build.gradle:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
     compileSdkVersion 21
     buildToolsVersion '20.0.0'
  
     defaultConfig {
          applicationId "de.rcsrcs.osiris"
          minSdkVersion 14
          targetSdkVersion 21
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              runProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile files('libs/mina-core-2.0.9.jar')
      compile files('libs/slf4j-api-1.7.7.jar')
      compile files('libs/slf4j-log4j12-1.7.7.jar')
      compile files('libs/slf4j-jdk14-1.7.7.jar')
      compile files('libs/model.jar')
      compile 'com.google.android.gms:play-services:6.1.71'
      compile 'com.android.support:appcompat-v7:21.0.0'
      compile 'com.android.support:support-v4:21.0.0'
      compile 'com.android.support:recyclerview-v7:21.0.0'
  }
  </code></pre>
  
  <p>As said before, the mina libraries work fine.</p>
  
  <p>Thanks for your help!</p>