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

后端 未结 4 1071
广开言路
广开言路 2020-12-15 05:30

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 pr

4条回答
  •  清歌不尽
    2020-12-15 05:45

    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.

提交回复
热议问题