Android ant compile failing?

In theory, it will be in your Command Prompt window, where you ran the ant release command, and above where you see the "C:\Program Files\Android\android-sdk\tools\ant\main_rules. Xml:384: Compile failed; see the compiler error output for details. ".

Up vote 1 down vote favorite share g+ share fb share tw.

I'm compiling android project through apache ant. After android update project command. I put ant release in my root directory of the project.

It says "C:\Program Files\Android\android-sdk\tools\ant\main_rules. Xml:384: Compile failed; see the compiler error output for details. " Where do I see compiler output?

What kind of error this should be because same project I can build through eclipse and sign application? Android apache ant compiler-errors link|improve this question asked Sep 14 '11 at 11:12Umakant Patil458518 79% accept rate.

In theory, it will be in your Command Prompt window, where you ran the ant release command, and above where you see the "C:\Program Files\Android\android-sdk\tools\ant\main_rules. Xml:384: Compile failed; see the compiler error output for details. ".

What kind of error this should be because same project I can build through eclipse and sign application? That is impossible to answer in the abstract, sorry.

I found the problem. I think you can edit your answer. I will mark it as correct answer.

Problem was with lib. I added all external lib likes admob sdk in "lib" folder. Instead it should go in "libs" folder.

It works fine in eclipse even we use name lib. But for ant we need it to be in libs folder. – Umakant Patil Sep 14 '11 at 12:45 3 @Umakant Patil: Yes, Ant needs JARs to be in libs/.

That is why I recommend that people create and use libs/ even with Eclipse, to make it easier to transition to command-line builds in the future (e.g. , for continuous integration). – CommonsWare Sep 14 '11 at 12:47 @CommonsWare - I found this to be necessary as well. It means every project that uses a jar needs to have its own copy.

Is there no way of overriding this in the build. Properties to avoid wasting disk space? I've tried setting jar.libs.absolute.

Dir etc all to no avail - it keeps complaining about missing libs directory – NickT Sep 14 '11 at 13:28 1 @NickT: With hard drives on developer machines in the multi-hundred-GB range, worrying about the space for JAR files suitable for use on mobile devices would seem to be a waste of effort. That being said, you can always try a symlink (if you're on OS X or Linux at least). – CommonsWare Sep 14 '11 at 13:48 @CommonsWare : Thanks - I'll live with it, I shouldn't be so churlish I guess.

It just goes against the grain that's all. Anyway I could always write my own build. Xml which didn't refer to main rules if I felt that strongly ( and had a spare week or so!

) – NickT Sep 14 '11 at 14:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions