Reputation:
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
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:
You can even do a search for a specific library, and then expand/collapse as desired:
Upvotes: 1
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
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
You can then change to new library and sync your project.
Upvotes: 1
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.
Upvotes: 9