how to know the latest version of a library (dependency) from Google for Android Studio

2

Generally, when we use features in Android Studio, you need to include libraries, example of a build.gradle (Module: app) file:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.android.support:support-v4:26.1.0'
    implementation 'com.android.support:support-vector-drawable:26.1.0'
    implementation 'com.google.android.gms:play-services-location:11.8.0'
    implementation 'com.google.android.gms:play-services-maps:11.8.0'
    implementation 'com.google.android.gms:play-services-places:11.8.0'
    implementation 'com.google.android.gms:play-services:11.8.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

    // alternatively, just LiveData
    implementation "android.arch.lifecycle:livedata:1.1.0"

    // Room (use 1.1.0-alpha1 for latest alpha)
    implementation "android.arch.persistence.room:runtime:1.1.0-alpha1"
    annotationProcessor "android.arch.persistence.room:compiler:1.1.0-alpha1"

}

I have already circled on several Google pages, and I can not find a trivial way of knowing which is the latest version of each library, I always find in a location someone quoting one version (11.2.0) already in another (11.8.0 ), I always use the one I see the highest, but this is very laborious and is not always the last release.

I've also tried Google-type searches:

  

com.android.support: appcompat-v7 last version

This sometimes works for one or another library, but not for the whole, I want to know if Google does not have a specific page by defining the latest versions of their Android libraries without having to go through the documentation pages of each library or make several surveys?

    
asked by anonymous 28.01.2018 / 23:17

1 answer

2

For appcompat at Support Library Packages you'll find the listing of all the libraries and their identifier to use in gradle .

You can find lists and details of the most recent revisions at Recent Support Library Revisions .

Directly in the gradle file, if you place the mouse pointer over the library identifier, if there is a newer version you will be warned.

    
28.01.2018 / 23:38