title: Gradle absolute / relative path
body: <p>I have the following problem. When I want to use a local jar in my Gradle dependencies.</p>
  
  <p>If I just add:</p>
  
  <pre><code>compile files('libs/PushLinkAndroid-5.3.0.jar')
  </code></pre>
  
  <p>It doesn't work. </p>
  
  <blockquote>
    <p>C:\Users\Kai\AndroidStudioProjects\ProjectA\app\src\main\java\de\xyz\xxx\projecta\BaseActivity.java:21: error: package com.pushlink.android does not exist
    import com.pushlink.android.PushLink;</p>
    
    <p>Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    4 errors</p>
    
    <p>FAILED</p>
    
    <p>FAILURE: Build failed with an exception.</p>
    
    <ul>
    <li><p>What went wrong:
    Execution failed for task ':app:compileDebugJava'.</p>
    
    <blockquote>
      <p>Compilation failed; see the compiler error output for details.</p>
    </blockquote></li>
    <li><p>Try:
    Run with --stacktrace option to get the stack trace. Run with --info or >--debug option to get more log output.</p></li>
    </ul>
    
    <p>BUILD FAILED</p>
    
    <p>Total time: 6.543 secs</p>
  </blockquote>
  
  <p>If i add the absolute path to the Jar, the project compiles and everything works finde:</p>
  
  <pre><code>compile files('C:/Users/Kai/AndroidStudioProjects/ProjectA/libs/PushLinkAndroid-5.3.0.jar')
  </code></pre>
  
  <p>Looks like there is something wrong with the Path but how could this be when the absolute Path works fine?</p>
  
  <p><strong>EDIT:</strong>
  Build.gradle</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 22
      buildToolsVersion "22.0.1"
  
      defaultConfig {
          applicationId "de.xyz.kai.migraenebook"
          minSdkVersion 16
          targetSdkVersion 22
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      //compile fileTree(include: ['*.jar'], dir: 'libs')
      compile 'com.android.support:appcompat-v7:22.2.0'
      compile 'com.jakewharton:butterknife:7.0.1'
      compile project(':volley')
      debugCompile 'im.dino:dbinspector:3.2.1@aar'
      compile 'de.hdodenhof:circleimageview:1.3.0'
      compile 'com.android.support:recyclerview-v7:+'
      //compile files('C:/Users/Kai/AndroidStudioProjects/MigraeneBook/libs/PushLinkAndroid-5.3.0.jar')
      compile files('libs/PushLinkAndroid-5.3.0.jar')
      //compile files('libraries/PushLinkAndroid-5.3.0.jar')
      //compile files('C:/Users/Kai/AndroidStudioProjects/MigraeneBook/libraries/PushLinkAndroid-5.3.0.jar')
  }
  </code></pre>
  
  <p>NOTE: I tried different folders, the PushLink.jar is in "libs" and "libraries". It doesn't make a difference which command I use or comment out - absolute path is working, relative not.</p>