Android wear project not getting compiled with gradle upgrade
<p>I upgrade my Gradle to 2.1 and project started giving this error.</p>

<pre><code>Error:Could not initialize class sun.management.ManagementFactoryHelper
</code></pre>

<p>Can anyone help me on this error?</p>