title: gradle build could not resolve dependencies
body: <p>I am trying to build my android project by gradle command: <code>gradle assembleDebug --offline</code>. But the result says 
  <code>Could not resolve com.android.tools.lint:lint-api:25.3.1</code>. 
  This library has already been in <code>.m2/repository/com/android/tools/lint/lint-api/lint-25.3.1.jar</code> and the project builds successfully inside Android Studio. Any suggestions? Thx in advance. </p>
  
  <blockquote>
    <p>build.gradle</p>
  </blockquote>
  
  <pre><code>    apply plugin: 'java'
      configurations {
          lintChecks
      }
      dependencies {
          compile 'com.android.tools.lint:lint-api:25.3.1'
          compile 'com.android.tools.lint.lint-checks:25.3.1'
          lintChecks files(jar)
      }       
      jar {
          manifest {
              attributes('Lint-Registry': 'com.android.cy.lint.MyIssueRegistry')
          }
      }
  </code></pre>