I have 8GB of RAM and 500GB hard disk but when I am using Android Studio it still freezes so much that I am unable to do my work. I have reinstalled the software without any improvement. I also formatted my system and reinstalled Android Studio again but nothing works. Can anyone tell me what can be a possible solution to this?
In android studio application package content, edit studio.vmoptions file and increase "-Xms" and "-Xmx" parameters like
-Xms1024m
-Xmx4096m
I figured out that idea is getting error while writing or reading cache (from idea.log)
WARN - .caches.project.IdeaModuleInfo - Could not find correct module information. Reason: Analyzing element of type class com.android.tools.idea.databinding.LightGeneratedComponentClass with no containing file Text: null
Every time when android studio freezes, I delete .idea/caches/
in project folder so it fixes freeze problem temporary