Download Google Api Java Client
Create the libs folder in the eclipse project.
Drag all client files that don't end with -source to the libs folder you just created. Do not add the dependency folder; instead, drag the dependencies from the folder to the libs folder.
Go to Project -> Properties -> Java Build Path -> Libraries tab
Click "Add JARS", go to your libs folder and add all the client files.
Go to the Order and Export tab and check all the customer files that you have added.
Clean up the project. You should be fine.
Update
As in ADT Rev. 21, the setting works as follows:
- Create libs folder in eclipse project
- Drag all client files that don't end with -source to the libs folder you just created. Do not add the dependency folder; instead, drag the dependencies from the folder to the libs folder.
- Go to the project → Properties → Java build path → Order and Export tab
- Check the box next to “Android Private Libraries” and you’ll go well.
source share