Infeasible
Status Update
Comments
rm...@google.com <rm...@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.
vs...@google.com <vs...@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. :(
Description
I have a problem with Gradle build. When I started Gradle build (for example: I just run an android application) Android Studio freeze an interface and I need to shutdown the AS from terminal. It happens every time. I can develop an application only when power save mode is on, but then I don't have syntax highlighting. Inside the idea.log, after freezing, I see:
2019-01-16 11:48:27,468 [thread 223] INFO - .diagnostic.PerformanceWatcher - High memory usage (free 371 of 2014 MB) while dumping threads to threadDumps-freeze-20190116-114801-AI-182.5107.16.33.5199772/threadDump-20190116-114827.txt
2019-01-16 11:48:47,525 [thread 210] INFO - .diagnostic.PerformanceWatcher - High memory usage (free 331 of 2014 MB) while dumping threads to threadDumps-freeze-20190116-114801-AI-182.5107.16.33.5199772/threadDump-20190116-114847.txt
Inside the threadDump-20190116-114827.txt I see a lot of Time waiting state, for example:
"AWT-EventQueue-0" prio=0 tid=0x0 nid=0x0 waiting on condition
java.lang.Thread.State: TIMED_WAITING
on com.intellij.openapi.application.impl.ReadMostlyRWLock@7fd7c105
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.writeLock(ReadMostlyRWLock.java:197)
at com.intellij.openapi.application.impl.ApplicationImpl.startWrite(ApplicationImpl.java:1229)
at com.intellij.openapi.application.impl.ApplicationImpl.access$500(ApplicationImpl.java:84)
at com.intellij.openapi.application.impl.ApplicationImpl$WriteAccessToken.<init>(ApplicationImpl.java:1281)
at com.intellij.openapi.application.impl.ApplicationImpl.acquireWriteActionLock(ApplicationImpl.java:1273)
at com.intellij.openapi.application.WriteAction.start(WriteAction.java:95)
at com.intellij.openapi.application.WriteAction.start(WriteAction.java:84)
at com.intellij.openapi.application.WriteAction.compute(WriteAction.java:117)
at com.intellij.openapi.project.DumbServiceImpl.updateFinished(DumbServiceImpl.java:346)
at com.intellij.openapi.project.DumbServiceImpl$$Lambda$1491/1645215550.run(Unknown Source)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
at com.intellij.openapi.application.TransactionGuardImpl.lambda$pollQueueLater$0(TransactionGuardImpl.java:74)
at com.intellij.openapi.application.TransactionGuardImpl$$Lambda$1492/1483050592.run(Unknown Source)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:431)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:817)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:758)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:394)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Build: 3.3, AI-182.5107.16.33.5199772, 201812250239,
AI-182.5107.16.33.5199772, JRE 1.8.0_152-release-1248-b01x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.14.2 unknown, screens 1440x900; Retina
Android Gradle Plugin: 3.2.1
Gradle: 4.10.2
NDK: from local.properties: (not specified); latest from SDK: (not found);
LLDB: pinned revision 3.1 not found; latest from SDK: (package not found);
CMake: from local.properties: (not specified); latest from SDK: (not found); from PATH: (not found);
IMPORTANT: Please read