Android Studio : Error:"Could not create the Java Virtual Machine" when i ran my app
<p>I am using Android Studio 1.5.1, i was following a video tutorial and i have made the excact same code as in the tutorial, but when i ran the app i have encountered this error :</p>

<p><a href="http://i.stack.imgur.com/LqcPr.png" rel="nofollow">The error</a></p>

<p>Even though i have set my gradle.properties to </p>

<p><code>org.gradle.jvmargs=-Xmx512m -XX\:MaxPermSize\=512m</code></p>

<p>And why is it giving me this message :</p>

<p><a href="http://i.stack.imgur.com/chiAZ.png" rel="nofollow">setText Message in Main Activity</a></p>

<p>Btw i am a newbie to Android Studio.</p>