0

I have added external jars into libs folder, But they get added into android private libraries .In my build path I don't see them under android dependencies.they get added to android private libraries.Also I get an error once I close and open the properties window of my project.Please find snapshot.enter image description here

I have tried cleaning my project and fixing my project properties.But that doesn't help.

Here is my project.properties

target=Google Inc.:Glass Development Kit Preview:19
android.library.reference.1=../tess-two-master/tess-two

EDIT: This issue is specific to GDK preview.For a normal android project the below answers work perfect.I am getting this issue only in Google glass projects.

Prasanna Aarthi
  • 3,439
  • 4
  • 26
  • 48

2 Answers2

1

From here

A good way to add external JARs to your Android project or any Java project is:

  1. Create a folder called libs in your project's root folder
  2. Copy your JAR files to the libs folder
  3. Now right click on the Jar file and then select Build Path > Add to Build Path, which will create a folder called 'Referenced Libraries' within your project

By doing this, you will not lose your libraries that are being referenced on your hard drive whenever you transfer your project to another computer.

Community
  • 1
  • 1
Mokhtarabadi
  • 349
  • 1
  • 3
  • 11
0

You can try this:

Your Project -> right click -> Properties -> Java Build Path -> Libraries -> Add Jar -> tess-two.jar

If that doesn't help then try referring to this video link.

overlord
  • 1,059
  • 1
  • 14
  • 21
  • Thank you,I tried it..I still get the error in my screenshot, that doesnt resolve..Also an absolute path will not come there, It should show up like ../tess-two – Prasanna Aarthi Sep 18 '14 at 06:49
  • Try to import tess-two project in eclipse as a library project. And then in your main project add this as a libary by Right click on project -> Properties -> Android -> Add -> select "tess-two" -> Apply. – overlord Sep 18 '14 at 10:06
  • Yeah that is how I have done and attached the screenshot – Prasanna Aarthi Sep 18 '14 at 10:10