Reputation: 73
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 ?
Upvotes: 4
Views: 779
Reputation: 1130
This is a bug that is fixed in up-coming Android Studio 2.4 release.
It also safe to ignore the warnings for RenderScript support lib, if you keep using Android Studio 2.3. The warnings are incorrect, and won't affect your app.
Upvotes: 5