'Android Studio - Problem with trying to increase Xmx

I tried to run my project and it appears that I did not allocate enough memory so I go to VM options and upgraded, and the error still appears, when it appears like in the screenshot I put my value oh Xmx and select shutdown.

What can I do if it does not change after that?

Screenshot of the error:

enter image description here



Solution 1:[1]

It seems that I had and JAVA_OPTIONS error apering all the time but I didn't see it, i just deleted the Java Options from users and systems following this thread

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dharman