Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App Getting Started with Android Running the Fun Facts Project

Fung How Lim
Fung How Lim
2,402 Points

Why does Android Studio keep indexing?

Hi there,

I installed the android studio moments ago and find it really strange that the software keeps lagging.

When I tried to run the project, several issues occurred on Android Studio;

  1. The software keeps indexing in the background, causing the entire software to lag terribly. It is really frustrating to click from one task to another as well, as each click takes about 3 minutes.

  2. When the Studio has finished indexing, navigation is still a terrifying experience as every click needs about a min of waiting time.

Does this mean my computer is out of date? I am currently using a Lenovo with Intel 1.90 GHz processor. Currently, I have not installed HAXM and HAX kernel module. Will the situation get better once these are installed?

Or should i load it in a different laptop altogether? Any advice would be highly appreciated. Thank you so, so much.

Best, Steve.

3 Answers

Peter Corletto
Peter Corletto
2,682 Points

Steve, the same thing happened to me when I started. The laptop I was using only had 2 GB RAM and it just lagged. I ended up getting a second hand desktop with 8 GB from a guy on Craigslist and I now use it for my Android dev. I recommend you get at least 8GB RAM.

Fung How Lim
Fung How Lim
2,402 Points

Hi,

Thank you so much for the reply, Pete. Wanna make sure I got this correctly; Your previous laptop kept lagging too from indexing back then? Or did it lag, but there wasn't anything wrong with indexing?

Looking forward to your reply.

Best, Steve.

Peter Corletto
Peter Corletto
2,682 Points

Hello, actually my laptop did not even let me open Android Studio, it took forever to do a build gradle. I don't recall it getting hung up on indexing. I am not sure if your issue has to do with RAM memory. It could be that, or maybe you need to update Android Studio or install all the required tools.

Hi. I also believe it is a performance issue on your computer as I ran into similar issues with having to wait maybe over 5 minutes for everything to load and be done with indexing.

I'm on my laptop running windows 8.1 with 8GB memory and it has an i7-3630QM CPU @ 2.40Ghz.

I am planning on getting an SSD pretty soon since the holidays are approaching and there may be good deals out there.

Lisa.