Igor
Igor

Reputation: 2089

Managing Android Studio dependencies

I have a few issues:

  1. When I want to add 'Google dependency' I can simply open project dependencies and choose proper library dependency, but this is not working for all 3rd party libraries (ex. Retrofit). So I have to go to their website copy URL and figure out the required version and combine proper URL- it would be nice to have some kind of auto completion here, to make this process faster.
  2. Is there a simple way to check for newer versions? Ex. I have 10 dependencies in my project and I would like to know if some of them should be updated (I know I may update versions automatically, but I don't always want this)

Upvotes: 1

Views: 47

Answers (1)

BirdLaw
BirdLaw

Reputation: 592

Android Studio highlights outdated dependencies in your app build.gradle file. If you mouse over the highlighted dependency, it will tell you the newest version.

To update the dependency, just replace the current version (e.g. 'com.android.support:appcompat-v7:25.4.0') with the new version (e.g. 'com.android.support:appcompat-v7:26.0.0'

Upvotes: 1

Related Questions