Search code examples
androidandroid-studioandroid-gradle-pluginandroid-support-libraryjcenter

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' 

Solution

  • 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