Android Add Library Dependency - smukov/AvI GitHub Wiki
Add Library Dependency
For a new Discover Users page that I was developing, I needed to use Gson. Gson is a Java serialization/deserialization library that can convert Java Objects into JSON and back. Gson isn't available in your Android project by default, and you need to add it as library dependency. Let's see how do that.
First, in Android Studio, click on File > Project Structure...:
Next, click on Dependencies tab in a Project Structure window that opened. And then click on the green + (plus) icon and select 1. Library Dependency:
Now in the Choose Library Dependency window start typing the name of the library that you want to add - in my case this was "gson". Select the desired library among the offered choices and click OK.
That's it. The library will now be usable within your Android project.