- Home /
How to use android Renderscript v8 with Unity?
Hello,
I'm trying to build an android plugin that makes use of Renderscript v8 to use some android specific items with some blurry effect. The problem is that unity doesn't seem to recognize this library, as I get this error when I test my application:
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v8/renderscript/RenderScript
and
java.lang.ClassNotFoundException: Didn't find class "android.support.v8.renderscript.RenderScript" on path: DexPathList[[zip file "/data/app/com.my.application/base.apk"],nativeLibraryDirectories=[/data/app/com.my.application/lib/x86, /data/app/com.my.application/base.apk!/lib/x86, /vendor/lib, /system/lib]]
Some research points out that to enable this feature it would be necessary to change the project.properties file, adding renderscript.target and renderscript.support.mode (http://stackoverflow.com/questions/25082537/android-cant-load-supportv8-renderscript-in-api-17 ). In fact, at Android Studio (which I use to write the plugin code) this is the way to go, but unity itself doesn't seem to provide any means to change this project configuration.
Also, simply putting the jar into plugins folder doesn't work, raising some JNI exceptions.
Is that any way to use this library with unity? What do you sugest?
Thanks in advance!