I've created an Android project in Eclipse and I would like to add the Volley library to it. Searching on the web, I've tried these approaches:
.jar
into the libs folder and right-click and add it to build-path.Nothing works. I still cannot access the classes provided by the library by importing the classes like follow: com.android.volley
Someone has a solution for this ?
The Solution:
Try this:
volley.jar
to the libs
folder. Don't add it to the build
path.Project
and make sure Build Automatically
is selected.Now in Project
, click on Clean
:
Project -> select Clean -> select the project.
As Volley
doesn't have any resources like styles, layouts etc., its not necessary to reference it as a library project. The above should work, provided all steps are followed.
If this doesn't work ...
Make sure the library has not been added to the build path. If it is, then remove it. Now, try: