Can't Repro
Status Update
Comments
uc...@google.com <uc...@google.com> #2
We use build flavours heavily with a lot of common code. The refactoring support in AS is really good but it continually catches us out when it doesn't work across all flavours in a project. It's a big gap for serious product development.
uc...@google.com <uc...@google.com> #3
We at my company need this same feature. We have a lot of white labels and need refactor the same class across flavours. :(
an...@google.com <an...@google.com> #4
I need this feature too...
Description
I tried updating Android Studio on my development machine this morning. Normally, it goes smoothly. This time, however, the updater crashed with an OutOfMemory error. It seems to be happening reliably the several times I've tried running it.
My machine has plenty of memory and it's nowhere near running out during the update process, which would lead me to believe that whoever is starting the updater process isn't allowing the JVM to use enough memory.
Android Studio version:
Android Studio 2.2.3
Build #AI-145.3537739, built on December 2, 2016
JRE: 1.8.0_112-release-b05 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Version of Gradle:
------------------------------------------------------------
Gradle 3.4
------------------------------------------------------------
Build time: 2017-02-20 14:49:26 UTC
Revision: 73f32d68824582945f5ac1810600e8d87794c3d4
Groovy: 2.4.7
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_102 (Oracle Corporation 25.102-b14)
OS: Mac OS X 10.12.3 x86_64
Steps to Reproduce:
1. Open Android Studio 2.2.3
2. Wait for the update notification to appear, then click 'Update'
3. Click 'Update and Restart'
4. Wait for the updater to download and apply the patch
5. Get this error part of the way though:
Temp. directory: /var/folders/0z/myqbz7ps3pd2b_wqkb2gcz6w0000gn/T/
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:421)
at java.lang.StringBuilder.append(StringBuilder.java:136)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:203)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)
at com.intellij.updater.Utils.collectRelativePaths(Utils.java:209)