Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 906
Mahdi Bashirpour Avatar asked Nov 11 '19 17:11

Mahdi Bashirpour


2 Answers

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

like image 141
mangei Avatar answered Nov 19 '22 09:11

mangei


try this:

ext {
    compileSdkVersion           = 28
    targetSdkVersion            = 28
    buildToolsVersion           = "28.0.3"
    googlePlayServicesVersion   = "17.0.0"
    supportLibVersion           = "27.1.0"
    androidMapsUtilsVersion     = "0.5+"
    minSdkVersion               = 16
}
like image 31
Bored Avatar answered Nov 19 '22 08:11

Bored