Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't import the volley library in eclipse

i just got the volley library from the below link.. git clone-https://android.googlesource.com/platform/frameworks/volley in eclipse i am following steps import>git>project from git>....etc

and the library got downloaded in C:\Users\active\git\volley

when i just want to import the volley folder to the eclipse(C:\Users\active\git\volley) it shows "Select at least one project" in IMPORT PROJECT.and their is only one project though i have selected that still it shows the same error on the top..seriously need a help...thanks in advance

like image 844
Asif Sb Avatar asked Dec 20 '14 07:12

Asif Sb


1 Answers

You need to build the jar and then add it to your libs folder in your project.

How to build the jar:

$ git clone https://android.googlesource.com/platform/frameworks/volley
$ cd volley
$ android update project -p .
$ ant jar

source

Here is a YouTube video if that would help: https://www.youtube.com/watch?v=5bwn7DYt2AI

You can also download a non-official build on maven central.

Edit:

It looks like volley can't be built with ant anymore (correct me if I'm wrong). All I did was create a new Android Project, mark it as a library project, create package com.android.volley, copy the source over to the project, and build it.

like image 91
Jared Rummler Avatar answered Sep 18 '22 04:09

Jared Rummler