1

Hey I am working on fecthing information from custom url address in my App. Right now I am in the starting just finish the layouts of App and I install Git and created a volley folder and after importing the volley folder in project my program is showing that volley is registered as a git root but no git repository found.... Please guide me well how to resolve this problem..

thanks in Advnace

Zain1122
  • 45
  • 1
  • 7

1 Answers1

0
  1. Download and Install Git from here

  2. Open Git Bash by right-click on desktop

  3. Type or paste:- $ git clone https://android.googlesource.com/platform/frameworks/volley in Git Bash

  4. It will download volley folder from the internet .Default folder is in C:\Users\YOUR_PC_NAME\volley\

5.Import volley folder in your app by File->New->Import Module. Then select that volley folder click finish.

6.After importing volley folder into your project Android studio shows you a dialog box to configure the project. Click on configure and then select the line which you want to add then click the green add button on your right.

  1. Open settings.gradle add or verify this is line- include ':app', ':volley'

  2. Add or verify in dependencies compile project(":volley")

D.Kumar
  • 102
  • 7
  • I cannot able to find volley folder.. its not in the Default directory. – Zain1122 Nov 09 '15 at 07:40
  • Okay i find the Volley it was in Git folder. thank you – Zain1122 Nov 09 '15 at 08:18
  • which software are you using Eclipse or Android Studio? – D.Kumar Nov 10 '15 at 06:40
  • Android Studio.. Now i am trying to Authorize the web services by validating username password.. can you guid me how to do it using volley ? – Zain1122 Nov 10 '15 at 06:43
  • If you are working on Android Studio, then after downloading volley folder, import volley folder in your app by File->New->New Module. – D.Kumar Nov 10 '15 at 06:47
  • I modified my answer if error still exists then please tell me on more details – D.Kumar Nov 10 '15 at 07:01
  • i want to ask this question http://stackoverflow.com/questions/33624100/how-to-authorize-user-name-and-password-using-volley-lib-in-android-studio can you tell me the answer of this – Zain1122 Nov 10 '15 at 07:10
  • Error:Cause: failed to find target with hash string 'android-22' in: C:\Users\Pc\AppData\Local\Android\sdk Open Android SDK Manager – Zain1122 Nov 10 '15 at 07:14
  • 1. Open SDK Manager and Install SDK build tools 22.0.1 then Sync gradle – D.Kumar Nov 10 '15 at 07:17
  • Still this Error:A problem occurred configuring project ':app'. > A problem occurred configuring project ':volley'. > failed to find target with hash string 'android-22' in: C:\Users\Pc\AppData\Local\Android\sdk – Zain1122 Nov 10 '15 at 07:24
  • http://stackoverflow.com/questions/32715418/failed-to-find-target-with-hash-string-android-22/33361724#33361724 – D.Kumar Nov 10 '15 at 07:52
  • when i remove the step 7 and 8 then the error gone but when I add it then It show this error again .. – Zain1122 Nov 10 '15 at 08:14
  • Make sure that when importing volley module go to File->New->Import Module in Android Studio. Not by right click on project file. – D.Kumar Nov 10 '15 at 08:31
  • press **Ctrl+Alt+S** then go to **Version Control** tab. Select the line under **Unregistered root** then click on **green ADD** button on the top-right corner. – D.Kumar Nov 10 '15 at 08:38
  • there is an Other tool option but where is Unregistered root ? – Zain1122 Nov 10 '15 at 09:02
  • Okay thank you I have add the unregistered file by clicking on Add button :) – Zain1122 Nov 10 '15 at 10:04
  • if my answer is useful to you then please don't forget to click up button on my answer. Thanx – D.Kumar Nov 10 '15 at 12:25