[android-developers] Don't mix Eclipse and Ant

2012-05-11 Thread Jacob Abrams
Sorry for this rant, but I have a number of complaints with the Android 
build system I'd like to air.

Firstly thank you Android build system engineers for adding incremental 
building to the build system, this is a hard problem and your work here is 
appreciated.

Now on to the major issue I just spent the evening debugging:

When you combine eclipse with the command line Ant build you may get 
runtime errors in your APK!

If you are using eclipse and it can't build one of your library projects 
because the java source has compilation errors Eclipse will go ahead and 
make class files anyway! The methods in these class files will be filled 
with junk like:

throw new Error("Unresolved compilation problem: \n");

If you then go ahead and build the same project with Ant in the 
commandline, the new incremental checks in the Android Ant build script 
will see that it is already been compiled, skip that step and use these 
class files in the generated APK. Resulting in runtime errors.

Jacob Abrams

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Don't mix Ant and Eclipse!

2012-05-11 Thread Jacob Abrams
Firstly thank you Android build system engineers for adding incremental 
building to the build system, this is a hard problem and your work here is 
appreciated. Now on to the major issue I just spent the evening debugging:

When you combine eclipse with the command line Ant build you may get 
runtime errors in your APK! If you are using eclipse and it can't build one 
of your library projects because the java source has compilation errors 
Eclipse will go ahead and make class files anyway! The methods in these 
class files will be filled with junk like:

throw new Error("Unresolved compilation problem: \n");

If you then go ahead and build the same project with Ant in the 
commandline, the new incremental checks in the Android Ant build script 
will see that it is already been compiled, skip that step and use these 
class files in the generated APK. Resulting in runtime errors.

Jacob Abrams

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Serious dependency bug in Android Ant build system

2012-05-16 Thread Jacob Abrams
Has anyone else seen this bug?

https://code.google.com/p/android/issues/detail?id=31242

I'm just trying to make sure I'm not the only one who is seeing this, and 
if not then please everyone help lobby Google to fix this ASAP to save 
engineers from spending hours of wasted time debugging problems that only 
happened because the Ant script built a broken APK that doesn't accurate 
reflect the source code!

Jacob Abrams

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en