Using Android Library Projects in Eclipse

To make other source projects available as dependencies to other projects, open Properties for the project you want to make available. On Android properties, check ‘is Library’ – this makes the project available as a Library project.

In other projects that are dependent on your Library project, on the same Android properties page, press the Add button in the Library section – you’ll see your Library projects listed. Select the one’s that you are dependent on, then Ok.

You don’t need to add any other Project References for compile or runtime time dependencies, this is all taken care of with the Android Library setting.

Android SDK error: Debug Certificate expired

If you get this error while attempting to start an app on your Android Emulator from the Android SDK in Eclipse:

Error generating final archive: Debug Certificate expired on [date/time]

…delete this file: ~/.android/debug.keystore – clean the app and redeploy. The Android SDK Eclipse plugin will regenerate the file when your app is rebuilt.

More info here.

Eclipse 4.2 Juno UI

I just downloaded the 3.0.0M2 release of the SpringSource Tool Suite, based on Eclipse 4.2 (Juno), and was surprised that the UI has been refreshed with a new look and feel. I’m not too sure if I like it at this point. The previous Eclipse UI was crisp, clear and unobtrusive, while the new UI seems like it’s more cluttered. There’s more adornments around your views, thcker scrollbars and dividers between views… it just seems more clunky.

Anyone else have the same opinion, or is it just me?