Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to apply patch while updating android studio

I am getting the following error while updating android studio.

I have tried increasing heap space to 2048 mb , but still i get the error.

Temp. directory: C:\Users\I306480\AppData\Local\Temp\

java.lang.OutOfMemoryError: Java heap space (failed to allocate 149228632 bytes)
    at ie.wombat.jbdiff.JBPatch.bspatch(JBPatch.java:91)
    at com.intellij.updater.BaseUpdateAction.applyDiff(BaseUpdateAction.java:112)
    at com.intellij.updater.UpdateAction.doApply(UpdateAction.java:44)
    at com.intellij.updater.PatchAction.apply(PatchAction.java:184)
    at com.intellij.updater.Patch$3.forEach(Patch.java:308)
    at com.intellij.updater.Patch.forEach(Patch.java:360)
    at com.intellij.updater.Patch.apply(Patch.java:303)
    at com.intellij.updater.PatchFileCreator.apply(PatchFileCreator.java:84)
    at com.intellij.updater.PatchFileCreator.apply(PatchFileCreator.java:75)
    at com.intellij.updater.Runner.doInstall(Runner.java:295)
    at com.intellij.updater.Runner.access$000(Runner.java:18)
    at com.intellij.updater.Runner$2.execute(Runner.java:261)
    at com.intellij.updater.SwingUpdaterUI$5.run(SwingUpdaterUI.java:191)
    at java.lang.Thread.run(Thread.java:812)

error

like image 877
uhs Avatar asked Aug 01 '15 17:08

uhs


People also ask

How to fix Android Studio update not working?

1- Go to Task Manager and kill any antivirus software and java process. 2- Start Android Studio as Administrator and run the update again. 3- Working... Wish you good luck... Show activity on this post.

How do I update my Android Studio IDE?

Update your IDE and change channels. Android Studio notifies you with a small bubble dialog when an update is available for the IDE, but you can manually check for updates by clicking Help > Check for Update (on Mac, Android Studio > Check for Updates).

How do I Turn on automatic updates in Android Studio?

In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure 1). Click Apply or OK. Figure 1. The Android Studio Updates preferences.

Why doesn’t Android Studio start after installing Android Studio?

Android Studio doesn’t start after installing version 4.2 Studio tries to import previous.vmoptions and sanitize them to work with the garbage collector used by JDK 11. If that process fails, the IDE may not start for certain users who set custom VM options in the.vmoptions file.


1 Answers

It Worked For me.. Wish you good luck

  • 1) Run Android Studio As Administrator.
  • 2) Close every open project.

  • 3) Goto Task Manager End/Kill JAVA Process.

  • 4) Now in Android Studio

    Start up Panel ...

  • goto Config > Check For Updates

    . And when dialog appears .press update and restart.

like image 154
Muhammad Jamal Avatar answered Oct 03 '22 13:10

Muhammad Jamal