I finally solved the problem, just now.
After almost giving up work, I returned to the project I was working on and noticed that I was getting 18 instances of the same error when I was compiling an application that was operational. This error was in the lines _JAVA_OPTIONS_ -Xmx512m , which was strange in this file in the file that I created for setting user VM parameters, this value was set to -Xmx2048m .
This made me think that for some reason this VM parameter was not recognized, possibly due to the studio64.exe.vmoptions file in one of the previous installation folders for Android. I looked into these folders and noticed another file with this name! I uninstalled it again by running the application but still getting the same error.
This is when I then remembered that I created an environment variable more than a year ago, when I was just starting out in Java and the book that I used to help her deal with it, it is recommended to start writing all programs in a text editor with AND to set the environment variables through advanced options in windows. Well, the environment variable was still present and was set to 512 m:

(The path for anyone who thinks they have done this is Control Panel » System » Advanced » Environment Variables )
I deleted this environment variable and checked the water before updating - I restarted the application without errors received this time. Stop the application, try updating to 2.1.1 on the 45th and with pleasure for the last time.
Apologies for the fact that the question does not include the missing information, but, as you can probably appreciate, it can easily slip in any case.
source share