Mixed version warning when using android renderscript api support

I use renderscript support and android 25.1.0 support support, I get this warning in my build.gradle module:

All com.android.support libraries must use the same version specification (mixing versions can cause 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 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 renderscript support version is related to the build tools ... How can I fix this without using a lower version of the Android support library?

+4
1

, ​​ Android Studio 2.4.

RenderScript, Android Studio 2.3. .

+4

Source: https://habr.com/ru/post/1678268/


All Articles