I try to run Renderscript example HelloCompute on Android 2.3.5.
( I use v22.2.1-833290 and SDK 22.2.1 I got an error message from Logcat:
W/dalvikvm( 4928): VFY: unable to resolve static method 412: Landroid/renderscript /RenderScript;.create (Landroid/content/Context;)Landroid/renderscript/RenderScript;
W/dalvikvm( 4928): threadid=1: thread exiting with uncaught exception (group=0x4002d560)
E/AndroidRuntime( 4928): FATAL EXCEPTION: main
E/AndroidRuntime( 4928): java.lang.NoSuchMethodError: android.renderscript.RenderScript.create
In order to make apk package, I added Android Support library v13 into build step.
I guess that renderscript library was not added correctly into build step. Sorry I could not find Android Support Library v8 as following post http://android-developers.blogspot.com/2013/09/renderscript-in-android-support-library.html
How can overcome this issue ?
Take a look at /build-tools/18.1.0/lib/renderscript-v8.jar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With