Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not run Renderscript HelloCompute example on Android GB 2.3.5

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 ?

like image 225
vonbk Avatar asked Sep 22 '13 14:09

vonbk


1 Answers

Take a look at /build-tools/18.1.0/lib/renderscript-v8.jar

like image 82
hrules6872 Avatar answered Oct 11 '22 20:10

hrules6872