title: Failed to generate apk from Android studio 3.1.1
body: <p>When I try to generate a signed APK, I found this issue :</p>
  
  <blockquote>
    <p>10:58 Generate Signed APK: Errors while building APK. You can find the errors in the 'Messages' view.
    No cached version of com.android.tools.lint:lint-gradle:26.1.1 available for offline mode.</p>
  </blockquote>
  
  <p>this is my android studio details :</p>
  
  <pre><code>Android Studio 3.1.1
  Build #AI-173.4697961, built on April 4, 2018
  JRE: 1.8.0_152-release-1024-b02 amd64
  JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  Windows 10 10.0
  </code></pre>
  
  <p>this block for signing the apk :</p>
  
  <pre><code>  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          signingConfig signingConfigs.releaseconfig
      }
      debug {
  
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'),
                  'proguard-rules.pro'
      }
  
  }  signingConfigs {
      releaseconfig {
          keyAlias 'release_key'
          keyPassword 'xxxxx'
          storeFile file('xxxxxx)
          storePassword 'xxxx'
      }
  }
  </code></pre>