0

When I try to use libraries they all seem empty to me (when I try to import them I can only see 'empty' packages). I tried both: drag-drop libraries to \libs and importing them. I don't know what is causing this problem...

I'm trying to import androidplot libraries, I'm not finding this particular issue on their boards so maybe I'm doing something wrong?!

view on libraries

EDIT

file in libraries folder

iluvatar
  • 69
  • 1
  • 12

4 Answers4

2

You're importing the androidplot sources jar which wont work because its full of .java files instead of the expected .class files. Use the library jar instead.

Nick
  • 8,181
  • 4
  • 38
  • 63
0

You should put them in your "libs" folder below, among with the others such as "android-support-v4", not with the Android the dependencies.

Yoann Hercouet
  • 17,894
  • 5
  • 58
  • 85
  • But I said I tried to drag-drop libraries to \libs, and it didn't work. – iluvatar Apr 13 '13 at 15:39
  • What is not working? You don't succeed to copy the libraries into the libs folder or the "import" in the code are not working? – Yoann Hercouet Apr 13 '13 at 17:18
  • I copied it to libs folder but they all seem to be empty packages. When I try to import them within `Activity` I can choose `import com.androidplot.xy*;` but there's nothing within package. – iluvatar Apr 13 '13 at 17:53
0

depending on the ADT version that you use, you may want to start reading here

Note that lib usages is no longer simple process of copying jars to a folder and building. The library project may need to be in eclipse and build as 'library' then referred to as a dependency in the specific idiom mentioned above in link.

Robert Rowntree
  • 6,230
  • 2
  • 24
  • 43
  • Your link leads to managing projects from command line, which I never did, and it would be very difficult for me to comprehend. My problem is really a matter of (seemingly) empty libraries - as seen on screenshot. – iluvatar Apr 13 '13 at 18:04
0

Follow the below steps .this might help you:

1-> Right Click on Your Project

2-> Click on Build Path

3-> Select Configure Build Path

4-> Select Add External JAR

5-> Locate Jar file in your System and add

Nargis
  • 4,687
  • 1
  • 28
  • 45