title: Android Studio 2.0 - NoSuchAlgorithmException: SHA256WITHDSA Signature not available
body: <p>I'm running <strong>Android Studio 2.0 Preview 3b</strong> and trying to use <em>"Generate Signed APK..."</em> from the <em>Build</em> menu.</p>
  
  <p>I get the following error <em>Messages</em> pane:</p>
  
  <pre><code>:wear:packageRelease FAILED
  FAILURE: Build failed with an exception.
  * Exception is:
  org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':wear:packageRelease'.
      at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
      at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
  ...
  Error:org.gradle.tooling.BuildException: SHA256WITHDSA Signature not available: try using a newer JVM to build your application.
      at com.android.build.gradle.tasks.PackageApplication.doFullTaskAction(PackageApplication.java:224)
      at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:82)
      at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
      at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
  ... 70 more
  Error:java.security.NoSuchAlgorithmException: SHA256WITHDSA Signature not available
      at org.bouncycastle.jcajce.DefaultJcaJceHelper.createSignature(Unknown Source)
      at org.bouncycastle.operator.jcajce.OperatorHelper.createSignature(Unknown Source)
  </code></pre>
  
  <p>Android Studio is using <strong>JRE 1.7.0_55-b13 x86_64</strong>.</p>
  
  <p>I see the <strong><em>try using a newer JVM to build your application.</em></strong> suggestion. Will it help to upgrade Java? Or how can I resolve this?</p>
  
  <p>I haven't seen anywhere (e.g. <a href="http://tools.android.com/recent" rel="noreferrer">http://tools.android.com/recent</a>) that a Java upgrade is needed for Android Studio 2.0.</p>