Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to add Volley in Android Studio?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 324
    Comment on it

    In 3 basics steps,you can add volley to your project:

     

    Step 1:First, you need to get the Volley source code:

    1. Use Git to checkout the source code for Volley, preferably to the filesystem where your Android project lives.
    2. git clone https://android.googlesource.com/platform/frameworks/volley

     

     

    Step 2: Include Volley as a module inside your current Android project:

    1.  Go to File -> Import Module
    2.  select the directory called ‘volley’ where you checked out the volley project from step one.

     

    Step 3: Update your project config so that your main project module is dependent on the volley module.

    1.  The settings.gradle file should contain your main app module name and also the volley module you have just added. In the picture below, both my modules are listed in this file.
    2. You also have to go into the build.gradle file of your main module. Add a line in your dependencies that says ‘compile project(‘:volley’). What’s inside those parentheses should match what is in your setting.build file.

     

    P.S. If you did it correctly, you should see in your build variant window, an additional configuration for Volley.  

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: