1

I have a late 2013 Macbook Pro Retina 15 inch with i7 2.3 GHz, 16GB Ram, nVidia 750m 2GB and 500GB PCIe SSD. I've always been happy with the machine and battery life, except when I work in Android Studio (always updated to the latest version). I can never get past 2,5 - 3 hours of battery life. Is this normal ? I never run the emulator, as I always use a real device to test my apps.

I've tried SMC and PRAM reset with no impact.

Any ideas?

1

There was a long-standing problem with Oracle JDKs/JREs causing the discrete video card rather than the integrated one to be used on Retina displays, with a consequent hit on battery life. The problem became apparent when JetBrains started bundling Oracle's JRE with IntelliJ-based IDEs (see, for instance, IDEA-119858 in their bugtracker). Android Studio is based on the IntelliJ platform so would have suffered from the same problem.

That said, the problem has been fixed for quite some time in JetBrains IDEs like IntelliJ IDEA, and issue 80173 in the Android Studio tracker says it was fixed in Android Studio 2.2. So since you say you're using the latest version perhaps your problem has another cause, or perhaps the problem's not in fact fixed in all cases. gfxCardStatus (as linked from the JetBrains bug report) might be useful in checking which card is actually being used. I used the tool for a while on my own mid-2012 Retina MacBook Pro back in the days when IntelliJ IDEA was suffering from this problem.

  • how much battery life do you get when using Android Studio ? I also use vers. 2.2. – r3dm4n Nov 23 '16 at 14:29
  • I don't use Android Studio - just other JetBrains IDEs (IntelliJ IDEA, AppCode etc.). But Android Studio is built on the same platform so I'm 100% confident it would have suffered in the same way. It's been a while since I used my MacBook on battery - but 2.5 to 3 hours sounds familiar... – codebrewer Nov 23 '16 at 14:34
  • I don't remember having this problem with IntelliJ Idea. Thanks for the answer, I wish I could vote up but I don't have enough rep :) Have a good one. – r3dm4n Nov 23 '16 at 14:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .