title: Android Studio: Error:org.gradle.tooling.BuildException: Failed to generate v1 signature
body: <p>The problem is arising in Android Studio 3.0.</p>
  <p>When I create a new project, everything works fine but after sometime, the error</p>
  <blockquote>
  <p>Error:org.gradle.tooling.BuildException: Failed to generate v1 signature</p>
  </blockquote>
  <p>Starts to appear automatically which causes the gradle to fail.</p>
  <p>When I run it with --stacktrace, here's what it shows me:</p>
  <blockquote>
  <p>Information:Gradle tasks [:app:assembleDebug]</p>
  <p>Error:org.gradle.tooling.BuildException: Failed to generate v1 signature</p>
  <p>Error:java.io.IOException: Failed to generate v1 signature</p>
  <p>Error:java.security.InvalidKeyException: Failed to sign using signer &quot;CERT&quot;</p>
  <p>Error:java.security.InvalidKeyException: Failed to sign using SHA1withDSA</p>
  <p>Error:java.security.InvalidKeyException: The security strength of SHA-1 digest algorithm is not sufficient for this key size</p>
  <p>Information:BUILD FAILED in 1s</p>
  <p>5 errors 0 warnings</p>
  </blockquote>
  <p>Here is the full Gist of the Gradle console <a href="https://gist.github.com/ceb65d688cd0e7c36babe65f0e4e8af3" rel="nofollow noreferrer">Gist</a></p>
  <p>I am using Windows 10 X64 with JDK 8 X64.</p>
  <p>Any help to solve this problem will be greatly appreciated!</p>