title: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment in my gradle build
body: <p>I am using gradle to build Android app and running into below error
  FAILURE: Build failed with an exception.</p>
  
  <ul>
  <li>What went wrong:
  Execution failed for task ':Assist:mergeAnimationReleaseResources'.
  
  <blockquote>
    <p>java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
    -- Would someone please point me the reason and how to resolve ? Thanks for your comments a lot :)</p>
  </blockquote></li>
  </ul>