Gradle: update dependencies using Android Studio

Today I discover an “experimental” feature in Android Studio. Since version 2.2, there is a new Project Structure dialog that allows update dependencies and get information about new releases.

Captura de pantalla 2017-04-04 a la(s) 02.49.45.png

I first assumed that the code editor in Android Studio follows something like Semantic Versioning in order to highlight minor update in dependencies, but not latest patches and beta (even alpha) versions, but that is not the case.

Android Studio will only highlight dependencies that Gradle consider as “promoted”. That means that “Gradle found some dependency conflict, and used default conflict resolution strategy, which is to prefer a newer version of some dependency” (thanks Stanislav @ StackOverflow for your answer here. More information about dependency resolution here.

To enable it go to Preferences > Build, Execution, Deployment > Gradle > Experimental and check Use new ‘Project Structure’ dialog.

Captura de pantalla 2017-04-04 a la(s) 02.49.30.png

Hope you find it useful!

Advertisements
Gradle: update dependencies using Android Studio

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s