Skip to content Skip to sidebar Skip to footer

Library Based Application Installs 2 Apk Files, Not One - Why?

I am trying to restructure an existing app so that, except for a few override-able methods in a derived activity, all code will reside in a library. This still doesn't work for som

Solution 1:

I found the answer myself. It turns out that I had 2 critical settings in the Properties of both projects not set correctly:

  1. In the library project, "Is Library" was not checked for some reason. I could swear that I checked it, but knowing how whimsical the Android development environment under Eclipse can be, I suspect that it was unchecked by Eclipse (or the ADT plugin) as a result of some glitch.
  2. In the application project, I neglected to add my library project as a reference via the Add... button. (how dumb could I be?)

Hoping this can be useful for other newbies to come.

Post a Comment for "Library Based Application Installs 2 Apk Files, Not One - Why?"