After months of not touching Android studio, the error occurred when you opened it:
I'm a Pepsi! The last time I used it was good, and now I'm saying I have a problem with my Java environment variables. I look at the environment variable also no problem ah, so there is only Baidu. The last problem is solved, although I don't know the reason.
Baidu's Solution:
A buddy met the same question as me:
Someone else gave him a reply:
This means that the Studio.exe.vmoptions file is found under the bin of the Android Stduio unpacking package.
After opening, change-xmx512m to-xmx256m,-xx:maxpermsize=250m to-xx:maxpermsize=128m.
or change-xmx750m to-xmx512m,-xx:maxpermsize=350m to-xx:maxpermsize=250m.
After the change, you can start normally.
What the hell is this?
Why does Android studio not report this error for a while? What is the basis of this approach? The problem has been solved, but I want to get a clear idea. If a great God sees, ask for guidance.
Androidstudio failed to create Jvm:erroe code-4 problem