Thanks Xavier, I'm not sure that I was seeing a refresh problem. Repeated F5 refreshes, on both the library and app project had no effect. On the other hand, I did not have auto refresh set on that machine (I was working on two different machines and only set the option on one) so maybe there's some subtle difference between auto-refresh and F5. In any event, I've now set the global option. I'll let you know if the problem recurs.
A related question, too: I'm stuck with a few warning messages in one of my library files. This is bad enough on it's own (my dev style is generally a "zero warnings tolerated") but it's worse because Eclipse shows multiple copies of each warning; one for each open app that is using the library. Is there any way to educate Eclipse to treat all mentions of the library as the same? Re shipping in binary form... that's really a pity. It defeats one of the major reasons to use libraries. Any plans to fix this in the future? I'll reply to Mark's message in a moment. Perhaps some merge between Android libraries and his parcels would work well for everyone? David On Jul 12, 9:12 pm, Xavier Ducrohet <[email protected]> wrote: > On Mon, Jul 12, 2010 at 2:16 AM, deg <[email protected]> wrote: > > 1) With both projects open in Eclipse, sometimes I make a change to > > source in the library and rebuild. The .class file gets rebuilt in the > > library project's bin directory, but not in the bin directory of the > > main app. This problem persists across multiple builds, and is only > > fixed when I hit it with a heavy sledgehammer -- cleaning all, or > > breaking and redoing the library dependency. Once fixed, it behaves > > ok, at least for many hours. > > This is a refresh issue. Eclipse doesn't realize that the source in > the library and the main project are the same (because linked folder > could link to anything), so editing the library source is considered > an external modifications for the version in the main project. The fix > is not to clean the projects but to refresh them. The best fix is to > set your workspace to automatically refresh (in preferences under > General > Workspace). > > > 2) The key reason I've divided the project into a library and main app > > is that we need to ship the library portion to 3rd-party developers. > > But, it looks like there is no way to ship an Android library, except > > as as source files. How can we ship an Android component to other > > developers in a binary form? (Source shipments are unacceptable, > > because of management security concerns). > > This is not possible at the moment. The reason libraries are handled > at the source level is that the R class in the library must be created > with all the resources (of the main project + all libraries). > > Xav > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc. > > Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

