Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a .jar out of the Volley project?

Tags:

How do I make a .jar file out of the Volley project (git repository)?

I have tried to follow the instructions in this answer, however running android update project -p . in the cloned volley folder throws this error:

Error: . is not a valid project (AndroidManifest.xml not found). 
like image 762
zbr Avatar asked Dec 15 '14 15:12

zbr


People also ask

Is volley an open source?

Overview. Volley is a library that makes networking for Android apps easier and most importantly, faster. Volley Library was announced by Ficus Kirkpatrick at Google I/O '13. It was first used by the Play Store team in Play Store Application and then they released it as an open source library.

Where is the volley Library in Android Studio project?

Navigate to your AndroidManifest. xml file in app->manifests->AndroidManifest. xml. You have now successfully added the Volley library to your Android project.

What is Google volley?

Volley is an HTTP library that makes networking for Android apps easier and most importantly, faster. Volley is available on GitHub. Volley offers the following benefits: Automatic scheduling of network requests. Multiple concurrent network connections.


1 Answers

The build process for Volley has changed to Gradle. If you just want to use the library without building it, you can get the Jar from Maven or scroll down to the instructions to building it yourself lower in this answer.

Maven

An easier way to obtain the Jar file is to download it directly from Maven Central. You can find the latest version with this search:

http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.mcxiaoke.volley%22

At the time of writing the 1.0.19 version can be found here:

http://search.maven.org/remotecontent?filepath=com/mcxiaoke/volley/library/1.0.19/library-1.0.19.jar


Gradle

The new way to do it is to build the project using Gradle.

You can do this by running:

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

This will create a file in

build\intermediates\bundles\release 

Then add this file into your libs folder and add it to your project.

like image 59
Kieran Andrews Avatar answered Oct 29 '22 11:10

Kieran Andrews