Jar file versus reference to the Android Library -


you make day explaining following nuissance.

l library. application using l, ca class, declared in extending class cl in library l.

untill recently, place l.jar in lib folder of project. purchased new hard disk, reset eclipse, adt plugin , sdk, transferred project new location. when started.

if place in a reference project l (via project/properties/android/library), still works right. jar file, gives "no class defintion found" error ca class, though belongs same class calling method!

to avoid sceptical remarks:

  1. l has no resources in it.
  2. compiler version 1.6
  3. i cleaned both projects millions of times.
  4. both projects compiled same api version.
  5. no obfuscation used , checked cl class present in l.jar.
  6. tried placing l.jar in build path, topmost, bottommost - no help.

thank anticipated help.

it rather silly of me: in "order , export" panel of buildpath configuration had android dependencies ticked, android provite libraries unticked.

what found out libraries linked through android properties go android dependencies, whereas ones in lib folder considered android private. explains why first included, while second weren't.

the annoying thing eclipse doesn't complain, build seems right, , @ execution stage error comes out. c programmer not quite used :)


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -