Creating and using custom JAR in Android project

Posted by Arsalan on Stack Overflow See other posts from Stack Overflow or by Arsalan
Published on 2010-06-09T10:09:50Z Indexed on 2010/06/09 10:12 UTC
Read the original article Hit count: 535

Filed under:
|
|
|

I am trying to create and use jar file in an Android project under Eclipse. I have tried various methods without any success. Here are the steps:

  • Create jar file from the source files jar -cf lib.jar *.java
  • Copy jar file to libs folder
  • Right click, Build Path->Add to Build path
  • Now, compiler gives unresolved symbols if I try to use a class from the jar file?

Can someone please let me know correct method to create and use an external jar file for the Android project under eclipse.

© Stack Overflow or respective owner

Related posts about java

Related posts about android