3

I want to make a jar file for android volley

I have cloned:

git clone https://android.googlesource.com/platform/frameworks/volley

then I tried : enter image description here

I get Build failed.

Can you advice please.thank you.

Thiago
  • 12,778
  • 14
  • 93
  • 110

1 Answers1

0

That repository doesn't always have the right structure. As for now I suppose the current version is android-5.1.1_r2 (May 11 2015). So to build:

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

You'd need sdk/platform-tools/ and sdk/tools/ in path environment variable for android update command to work.

Or if you use gradle you can just add compile 'com.android.volley:volley:1.0.0' in your gradle build.

Michael Dodd
  • 10,102
  • 12
  • 51
  • 64
inmyth
  • 8,880
  • 4
  • 47
  • 52