Skip to content

Instantly share code, notes, and snippets.

@gotev
Created August 24, 2016 19:56
Show Gist options
  • Save gotev/3a8c675b96da1db614aacef5515734e3 to your computer and use it in GitHub Desktop.
Save gotev/3a8c675b96da1db614aacef5515734e3 to your computer and use it in GitHub Desktop.
Check gradle dependency update
Settings > Editor > Inspections > "Newer Library Versions Available"

The description for this inspection:

Newer Library Versions Available This detector checks with a central repository to see if there are newer versions available for the dependencies used by this project. This is similar to the GradleDependency check, which checks for newer versions available in the Android SDK tools and libraries, but this works with any MavenCentral dependency, and connects to the library every time, which makes it more flexible but also much slower.

Because of the slowdown this can introduce I'd recommend running it manually periodically, rather than having it always on. You can do this by:

Analyze > "Run Inspection By Name"

Then search for "Newer Library Versions Available", and run it on your module.

Note that it appears you must have the inspection enabled in order to run it manually - so (as of Android Studio 2.0 Beta 2) you need to find the inspection in settings, enable it, then run it by name, then disable it again (to regain previous performance).

@gotev
Copy link
Author

gotev commented Aug 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment