Android Studio Out of Memory

前端 未结 6 1872
被撕碎了的回忆
被撕碎了的回忆 2020-12-02 21:23

This morning I have been experiencing an issue with Android Studio, whenever I open it I am getting the following error.<script

6条回答
  •  情深已故
    2020-12-02 21:52

    This happened to me when I entered /* to begin commenting out a few lines. And it happened before I could add the */ to close the comment section. Therefore, the entire second half of the file (and beyond) was being commented out. I could not go back to add the needed */ to close the comment, because the "Out of Memory" window kept popping back up before I could do so.

    So I closed Android Studio, opened the same .java file in NotePad, added the needed * / a few lines below the /*, saved the file with NotePad, then reopened it again in Android Studio.

    The Out of Memory problem was gone for good.

提交回复
热议问题