I'm using support renderscript and android support library 25.1.0, I'm getting this warning in my module build.gradle :
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 25.1.0, 25.0.2. Examples include com.android.support:animated-vector-drawable:25.1.0 and com.android.support:renderscript:25.0.2
Here is my code to get the renderscript support library :
android{
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
...
targetSdkVersion 25
versionCode Integer.valueOf(versionId)
versionName version
renderscriptTargetApi 20
renderscriptSupportModeEnabled true
multiDexEnabled true
minSdkVersion minSdk
}
}
It seems that the support renderscript version is linked with the build-tools one... How can I fix this without using a lower android support library version ?