title: Incompatible minimum and maximum heap sizes specified
body: <p>I am getting this error when I typed <code>gradlew run -Pargs="message"</code> in the terminal window of android studio to send a message to the app.</p>
  
  <p>Error occurred during initialization of VM:</p>
  
  <blockquote>
    <p>Incompatible minimum and maximum heap sizes specified.</p>
  </blockquote>
  
  <p>Default value in Environment variables set for java is:</p>
  
  <p><code>-Xmx512m -Xms1024m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:NewSize=128m</code></p>