user7154703
user7154703

Reputation:

Android Studio : How to find latest version number of google specific libraries?

How to find latest version number of google specific libraries from repositories (jcenter etc..) to include in gradle dependencies in Android Studio.

For non google libraries generally I can make a search in jcenter itself. But not able to search google specific libraries there.

You may take example of following libraries.

com.android.support:appcompat-v7:25.1.0'
com.android.support:recyclerview-v7:23.3.0' 

Upvotes: 8

Views: 2475

Answers (4)

auspicious99
auspicious99

Reputation: 4311

The best way these days is to go to https://maven.google.com , where google now lets you browse all their libraries and see all the versions available, including the latest version. It looks like this:

enter image description here

You can even do a search for a specific library, and then expand/collapse as desired:

enter image description here

Upvotes: 1

Febi M Felix
Febi M Felix

Reputation: 2839

Another way to use the latest libraries in Android Studio.

Right click your project and choose Open Module Settings. Project Structure window will appear. Select 'app' from the left pane and choose the 'Dependencies' tab. Include new library dependency by pressing the + icon. Search your needed library in the window opened up. Latest library dependency will appear in the suggestions and you can add them to your project.

Upvotes: 1

Rakesh Yadav
Rakesh Yadav

Reputation: 1985

If you have added a dependency, you can see them by moving the cursor to that library. It will show you a warning

like this

You can then change to new library and sync your project.

Upvotes: 1

Paresh Mayani
Paresh Mayani

Reputation: 128428

Yes as Tim mentioned in the comment Gradle tells you by highlighting particular dependency as a warning.

Trick to update dependency with latest version:

Let me also share a trick through which you can always include the latest version of the particular dependency.

  1. Replace the version number with only "+" sign.
  2. Sync gradle
  3. Now select + sign and press ALT + ENTER, it will show you drop down menu with an option to select latest version.

enter image description here

Upvotes: 9

Related Questions