First of all, I've know there are several questions targeting this topic, but none of them helped me.
I'm developing my first Android project with Android/ADT plugin and I want to use this library. I searched here in SO and in the official documentation how to accomplish this and I found how to reference a library project.
I ran the following command:
$ android update project --target 8 /path/to/workspace/myproject /path/to/workspace/numberpicker/lib
Resolved location of library project to: /path/to/workspace/numberpicker/lib
Updated project.properties
Updated local.properties
No project name specified, using Activity name 'SplashActivity'.
If you wish to change it, edit the first line of build.xml.
Added file /path/to/workspace/myproject/build.xml
Updated file /path/to/workspace/myproject/proguard-project.txt
Apparently this step worked correctly. But when I try to reference com.michaelnovakjr.numberpicker.NumberPicker
in a xml layout the Eclipse complains it fails to find this class.
Then I found this answer and changed my project.properties
:
# Before
android.library.reference.1=/path/to/workspace/numberpicker/lib
# After
android.library.reference.1=../numberpicker/lib
But didn't solve my problem.
Perhaps it is important to mention that this library is not a Eclipse project, so I can not open it in Eclipse.