Im an android developer who recently moved to Android Studio. I had this problem of finding a library dependency name that I needed to declare in the gradle. The problem started when I was trying to add the Volley library to my project, I searched all over to find the relevant package of volley which needs to be declared in the dependency set and when I tried to use the
You will see the dependency added in your gradle and the gradle auto sync has been initiated.
https://android.googlesource.com/platform/frameworks/volleyThe gradle build failed, and I couldnt find a proper package name. So, I thought to share with you how to add a dependency whose package name you don't know in the android studio gradle. Please follow these steps:
- Right click your project name (say app)
- Open Module Settings
- Select Dependencies tab
- Click on the + sign in the top right
- Choose Library Dependency
- In the window that opens type the library file's name(say volley)
- Double click on any library file and click Ok
No comments:
Post a Comment