When your Android app uses multiple support libraries, you have to carefully manage the library versions in your Gradle files. There are a few ways of doing this using Gradle variables.
- [Instructor] When your Android app…uses multiple support libraries,…you have to carefully manage the library versions…in your Gradle files.…There are a few ways of doing this,…and in this tip I'm going to show you…how to use Gradle variables so you can declare…a version number once and then use it multiple times.…In this starting app, I'm declaring three support libraries,…the app compat library, design,…and support vector drawable.…And in this app, I'm targeting API level 25,…declared up here in the target…SDK version and the compile SDK version.…
My library major versions have to match that.…But to make things a little bit easier,…I'm using what are known as dynamic versions.…The plus character means whatever…is the most recent version.…Now this is great for training content…for sample applications, but for a real production…application, you don't want to do this.…You always want to be very specific as…to which version of the libraries you're using,…so you don't have unanticipated…changes creeping into your app.…
Skill Level Intermediate
Q: Why can't I earn a Certificate of Completion for this course?
A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
Building Android Apps with Cloud Serviceswith Albert Lo2h 37m Intermediate
1. Android Development Tips Weekly
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.