Over the recent months, our project has become unb...
# android-studio
b
Over the recent months, our project has become unbearably slow to use in Android Studio. Code completion, auto-importing, and code-formatting all end up taking several seconds, even longer. It seems the more Kotlin we add, the slower it gets, but it’s hard to verify or pinpoint why this could be the case. There are so many moving parts, e.g. Kotlin Serialization, Android View Bindings, Dagger, etc., and it’s hard to troubleshoot. Does anybody have ideas how to figure this out? Does the IDE have any profiling/reporting tools that would help us see what it’s spending its time on? Our team would appreciate any help.
1
o
Option 1 is stop using Android studio and use intellij IDEA with the Android plugin and see if that helps at all. On one of the projects i work on, (it's very large) some of the folks on my team switched to this and saw a dramatic improvement in build time, code formating auto complete etc. We compared it with latest stable version of AS. I switched to beta channel and most of my issues seemed to have fixed with the latest RC version in beta. In terms of trying to pinpoint what may be taking long, you can change your build /Gradle view in Android studio and see which Gradle task it's getting hung up on or taking a long time on. The build/Gradle view window in AS will show in a sequential list which Gradle task is running so you should be able to follow along and see what's going on.
👍 1
r
You should check if you are spawning many different sources of your jre.