Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse slow at building Android resources

I'm using Eclipse to develop Android apps. I'm using the latest SDK and Eclipse 3.6, my computer is macbook air with 4GB of ram.

Everytime I change a resource file ( an XML layout for example ), it takes eclipse between 1mn and 2mn to actually rebuild the binary and deploy it. My binary is about 10M ( it's a game with lots of bitmaps ).

It's very hard to program with such high response times, any way to make it shorter ?

like image 254
Alex Avatar asked Jun 15 '11 18:06

Alex


2 Answers

If you have a lot of graphics you might want to read this android-dev post. aapt optimizes pngs during a build (perhaps unnecessarily so) but only if the extension is .png (case sensitive). Renaming them to .PNG skips the optimization step but the images are still useful when referenced.

like image 136
Pedantic Avatar answered Sep 28 '22 00:09

Pedantic


They are fixing this problem and it's available in ADT 12.

http://tools.android.com/download

http://tools.android.com/recent/finercontroloveradtbuildprocess

like image 34
Arron La Avatar answered Sep 27 '22 23:09

Arron La