Android gradle: what do square brackets around the version mean?

@GabeSechan something is strange here athough I have:

implementation 'com.facebook.android:facebook-android-sdk:[4,5)'

I get a warning in Android studio saying :

A newer version of com.facebook.android:facebook-android-sdk than [4,5) is available: 4.38.1

this would mean the [4,5] doesn't necessarily imports the latest version on the SDK


It means a range. [ means including, ) means up to. So that would be any version starting with 4, but less than 5. so 4.0, 4.1, 4.99999.9999 would match, 5.0 would not. 4.+ means anything 4 or greater with no upper bound.

Tags:

Android

Gradle