Why do I get so many errors building my Android project with Ant?
Posted
by synic
on Stack Overflow
See other posts from Stack Overflow
or by synic
Published on 2010-06-15T21:26:49Z
Indexed on
2010/06/15
21:42 UTC
Read the original article
Hit count: 202
Now that I sort of know my way around the SDK/API, I've switched from Eclipse back to my favorite text editor, which means I have to use ant to build my project, however:
It seems every other time I compile the project, a lot of drawables get corrupted, resources lose their ids (resulting in NPEs in the code), or classes throw "Verify Errors".
The only way to fix this is by removing the bin
and gen
folders, and recompiling, which is obviously annoying.
Is there any way to avoid this?
btw, I'm using ant 1.7.1, java version "1.6.0_20"
© Stack Overflow or respective owner