I have an eclipse project. This project is pretty complex, uses 2 or 3 library projects and finally runs proguard
.
I can build the project from the eclipse GUI, and everything's cool.
However, when I run it from command line, ant release
fails with proguard
complaining about things I think are related to missing library components.
At first sight there are subtle differences, like ANT
not respecting files marked for exclusion in eclipse GUI, and I suppose if I found this, there'd be some other things as well. The build sequence gets pretty far, but ultimately always fails to build the project.
I wonder if there's a specific ant configuration file used by Eclipse, so I can manually run
ANT
and get the same output Eclipse gets.This is for a bigger project, so I'm not really interested in manually fixing
ANT
build files, but to know if, as (eclipse usesant
itself?) there's a file somewhere that I can use to tellANT
how to properly build an eclipse project, or to infer how does eclipse configureANT
with additional options that cause the build to suceed.
I also compile a project which has dependencies on 4 more library projects and uses 3 more jar library files. The Ant script compiles, makes obfuscation with proguard and signs the apk at the end with no issues what so ever.
To make all this working I simply needed to update project to use ant build as it is described in official Android documentation.
android update project -p .
That should be enough to make everything compilable. Maybe if you run this command it fixes issues you have. If it's not, please let us know what proguard error you have exactly.