-
Notifications
You must be signed in to change notification settings - Fork 24
Android 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.
- Android
- Getting Started
- Project Structure
- Gradle
- Menu
- Theming
- Login Screen
- Menu & Navigation
- Importing Library From GitHub
- Creating Reusable Layouts
- Adding New Icons
- Profile Screen
- Chat Screen
- Contacts Screen
- Pending Invites Screen
- Settings Screen
- Add Library Dependency
- Discover Users Screen
- Splash Screen
- Auth0
- Authentication Logic
- Profile Screen Logic
- Send Feedback
- Authenticated to Firebase via Auth0
- Saving User Info to Firebase
- Storing User Connection Info to Firebase
- Calculating Distance Between Users
- Chat Logic
- Handling Device Rotation
- Android Other
- Ionic
- Getting Started
- Project Structure
- Menu
- Theming
- Login Screen
- Adding Images
- Creating Reusable Layouts
- Adding New Icons
- Profile Screen
- Contact Screen
- Elastic Textarea
- Chat Bubble
- Chat Screen
- Contacts Screen
- Pending Invites Screen
- Settings Screen
- Discover Users Screen
- Splash Screen
- Animations
- Auth0
- Storing User Data
- Profile Screen Logic
- Send Feedback
- Update to Ionic RC0
- Reimplemented Auth0 with Ionic RC0
- Authenticated to Firebase via Auth0
- Saving User Info to Firebase
- Storing User Connection Info to Firebase
- Calculating Distance Between Users
- Chat Logic
- Handling Device Rotation
- Ionic Other
- Version Updating
- Cordova
- Other
- Messaging