Partial fix found. When a clean-build cycle is done, Eclipse builds the projects in lexicographical order. And App is sorted before AppCore. So, they are all cleaned, then compiled in order. When App is abount to be compiled, AppCore.jar does not exist, and fails. Then, AppCore is built, AppCore.jar is created and Eclipse cries (but I couldn't understand why, because AppCore.jar existed).
However, preferences -> general -> workspace -> build order does not seem to solve it, it seems to be ignored. Any idea why? Workaround: clean-build, build. The first clean-build compiles AppCore, the second one compiles App without problem. On Nov 13, 8:59 am, J <[email protected]> wrote: > Hi, > > I've just upgraded my instalation of the Android SDK and I'm facing > a new problem. Let's see if someone else have faced it. > > I've created a project AppCore, and a projects App. AppCore is a > library project (project -> properties -> android -> Is Libray), while > App and AppAds have AppCore as library (project -> properties -> > android -> Library -> Add -----> AppCore). (1) > > Clean, rebuild,... and App does not build (AppCore does build > without problem). The error is: > > "The project cannot be built until build path errors are resolved" > > project -> properties -> Java Build Path shows no errors. The > Libraries tab shows a new entry Library Projects pointing to AppCore. > > This problem happens both to new project I create after the upgrade > of the SDK and the ADT plugin, as well as to old projects that I have > created before the upgrade. No need to tell that those old projects > were compiling without problem with the old SDK/ADT. > > So I open .classpath and find this: > > <classpath> > <classpathentry kind="src" path="src"/> > <classpathentry kind="src" path="gen"/> > <classpathentry kind="con" > path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> > <classpathentry kind="con" > path="com.android.ide.eclipse.adt.LIBRARIES"/> > <classpathentry kind="output" path="bin/classes"/> > </classpath> > > After a lot of trial-error, I've found that if I remove the > LIBRARIES entry, the build path error does not show (of course, it > complains about a lot of missing classes). > > Any further idea? Any hint? > > (1): You probably guess that I will create a project AppAds, and that > AppCore is the shared code, while App is the paid version and AppAds > is the free version with Ads. App clases extends AppCore classes. -- 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

