Get "supportLibVersion" , "playServicesVersion" and "androidMapsUtilsVersion" Value in configuration react-native-maps
Asked Answered
B

2

17

I am installing react-native-maps. In the installation guide, on Build configuration on Android in Section 3.1, it shows:

buildscript {
    ext {
        buildToolsVersion = "xxx"
        minSdkVersion = xxx
        compileSdkVersion = xxx
        targetSdkVersion = xxx
        supportLibVersion = "xxx"
        playServicesVersion = "xxx" // or set latest version
        androidMapsUtilsVersion = "xxx"
    }
}
...

How can i get supportLibVersion , playServicesVersion and androidMapsUtilsVersion values?

Baron answered 11/11, 2019 at 17:38 Comment(0)
E
31

In general, all libaries can be found in the maven repository. For some you have to see a concrete library to get the version number (this number is the number you put in the build.grade file). Usually, all libraries that are part of a group, should support the same version numbers (otherwise you get a compile error and you need to check the concrete version and make sure that it exists for the libraries that you need).

googlePlayServicesVersion:
https://mvnrepository.com/artifact/com.google.android.gms/play-services-maps

androidMapsUtilsVersion:
https://mvnrepository.com/artifact/com.google.maps.android/android-maps-utils

supportLibVersion:
https://mvnrepository.com/search?q=com.android.support
See within a library. e.g. https://mvnrepository.com/artifact/com.android.support/appcompat-v7

Encomium answered 17/1, 2020 at 22:47 Comment(1)
thank you for all the links! you're a hero !Tootle
A
16

try this:

ext {
    compileSdkVersion           = 28
    targetSdkVersion            = 28
    buildToolsVersion           = "28.0.3"
    googlePlayServicesVersion   = "17.0.0"
    supportLibVersion           = "27.1.0"
    androidMapsUtilsVersion     = "0.5+"
    minSdkVersion               = 16
}
Amontillado answered 15/11, 2019 at 16:17 Comment(4)
As someone stumbling on this... Where are you supposed to find out the versions of these things? I searched everywhere and couldn't find them.Corelation
@Corelation I added an answer, that should clarify your question.Encomium
supportLibVersion = "29" playServicesVersion = "17.0.0" androidMapsUtilsVersion = "2.2.0"Fuze
Hi, is it supposed to be playServicesVersion or googlePlayServicesVersion ??Dromond

© 2022 - 2024 — McMap. All rights reserved.