Androidstudio failed to create Jvm:erroe code-4 problem

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.