2
Generally, when we use features in Android Studio, you need to include libraries, example of a file build.Gradle (Module: app):
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’ve searched on several Google pages, and I can’t find a trivial way of knowing what is the latest version of each library, I always find in one place someone quoting one version (11.2.0) already in another (11.8.0), I always use the one I see higher, but this is very laborious and is not always the last version released.
I’ve also tried the type searches on Google:
com.android.support:appcompat-v7 last version
This sometimes works for one or another library, but not for all, I want to know if Google does not have a specific page defining the latest versions of their libraries for Android without having to enter the documentation pages of each library or do various searches?
'Recent Support Library, that was the reference page I needed, thank you. About placing the mouse pointer over the library version only works for some libraries whose targetSdkVersion differs from the library version.
– Chinnon Santos
"(...) only works for some libraries (...)" - Not true, the difference in this case is that the library identifier is underlined with a red line. In other cases, there is no red line but if you put the pointer the information is shown.
– ramaral