Can't Repro
Status Update
Comments
ch...@google.com <ch...@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.
ch...@google.com <ch...@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. :(
pa...@google.com <pa...@google.com> #5
+1, I need this very badly
ch...@google.com <ch...@google.com> #6
+1 My company also need this feature.
es...@google.com <es...@google.com>
vs...@google.com <vs...@google.com> #7
Can we atleast know the status of the issue please? Will it be fixed or is it in low priority. It's been 4 years.
Description
Starting with:
Build: 2.2 Beta 3, AI-145.3225885, 20160826,
1.8.0_76-release-b03x64 Oracle Corporation, Windows 10(amd64) v10.0 (2560x1440, 1920x1200)
Updated IDE to 2.2 RC (build 145.3240973) - failed with:
Temp. directory: D:\Users\Jeff\AppData\Local\Temp\
java.io.IOException: Cannot delete file C:\Program Files\Android-Studio 2.2_b3\lib\external-system-rt.jar
at com.intellij.updater.BaseUpdateAction.replaceUpdated(BaseUpdateAction.java:68)
at com.intellij.updater.UpdateAction.doApply(UpdateAction.java:62)
at com.intellij.updater.PatchAction.apply(PatchAction.java:188)
at com.intellij.updater.Patch$3.forEach(Patch.java:333)
at com.intellij.updater.Patch.forEach(Patch.java:385)
at com.intellij.updater.Patch.apply(Patch.java:328)
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:289)
at com.intellij.updater.Runner$1.execute(Runner.java:255)
at com.intellij.updater.StandaloneSwingUpdaterUI$5.run(StandaloneSwingUpdaterUI.java:191)
at java.lang.Thread.run(Thread.java:745)
Also tried to update as administrator and failed also.
Work around:
Restarted computer (file was locked by OpenJDK) Moved " external-system-rt.jar" to a temporary location Restarted AS - received IDE internal errors Performed the update Got error that the above file was missing but update proceed and AS started Canceled autoload of last project Closed AS Moved file back to lib directory Restarted AS, selected prior project Started fine, patch applied