Import Renderscript in Android Studio (AndroidX)

0
328

You need to open your build.gradle and then add the following RenderScript properties :

renderscriptTargetApi 17
renderscriptSupportModeEnabled false

Then in your java class, import the following

import android.renderscript.Allocation;
import android.renderscript.Element;
import android.renderscript.RenderScript;
import android.renderscript.ScriptIntrinsicBlur;

LEAVE A REPLY

Please enter your comment!
Please enter your name here