Suppose you use latest Android SDK & ADT version, and you want to add a standard java project B as a dependency in android project A:
- Add project B to project A’s build path:
Properties -> Java Build Path -> Projects -> Add ...
- Tick project B in project A’s build path export list:
Properties -> Java Build Path -> Order and Export
Now you should able to use class from the standard java library in your Android project and build/run/debug it in Eclipse.
Hope this helps.
UPDATE: The operations above just add one line into .classpath
<classpathentry combineaccessrules="false" exported="true" kind="src" path="/projB"/>