I'm using RenderScript support library with *SDK Tools 22.6.2, Build-tools 
19.0.3*. It works well on the 4.1 device, but not on the 2.3.3 emulator.

My project.properties:


target=android-19

renderscript.target=19

renderscript.support.mode=true

sdk.buildtools=19.0.3

If I lower the build tools version, it starts complaining about the version.
'RenderScript support mode requires Build-Tools 19.0.3 or later.'

I don't have a android 2.x device, so I couldn't test it on the device.

When I run it on the *2.3.3 armeabi emulator*, the error was this:

04-04 15:37:39.146: W/dalvikvm(863): Unable to resolve superclass of 
Landroid/support/v8/renderscript/RenderScript$2; (316)
04-04 15:37:39.146: W/dalvikvm(863): Link of class 
'Landroid/support/v8/renderscript/RenderScript$2;' failed
04-04 15:37:39.146: E/dalvikvm(863): Could not find class 
'android.support.v8.renderscript.RenderScript$2', referenced from method 
android.support.v8.renderscript.RenderScript.setErrorHandler
04-04 15:37:39.146: W/dalvikvm(863): VFY: unable to resolve new-instance 
890 (Landroid/support/v8/renderscript/RenderScript$2;) in 
Landroid/support/v8/renderscript/RenderScript;
04-04 15:37:39.146: D/dalvikvm(863): VFY: replacing opcode 0x22 at 0x0009
04-04 15:37:39.146: D/dalvikvm(863): VFY: dead code 0x000b-0012 in 
Landroid/support/v8/renderscript/RenderScript;.setErrorHandler 
(Landroid/support/v8/renderscript/RenderScript$RSErrorHandler;)V
04-04 15:37:39.146: W/dalvikvm(863): Unable to resolve superclass of 
Landroid/support/v8/renderscript/RenderScript$1; (317)
04-04 15:37:39.146: W/dalvikvm(863): Link of class 
'Landroid/support/v8/renderscript/RenderScript$1;' failed
04-04 15:37:39.146: E/dalvikvm(863): Could not find class 
'android.support.v8.renderscript.RenderScript$1', referenced from method 
android.support.v8.renderscript.RenderScript.setMessageHandler
04-04 15:37:39.146: W/dalvikvm(863): VFY: unable to resolve new-instance 
889 (Landroid/support/v8/renderscript/RenderScript$1;) in 
Landroid/support/v8/renderscript/RenderScript;
04-04 15:37:39.156: D/dalvikvm(863): VFY: replacing opcode 0x22 at 0x0009
04-04 15:37:39.156: D/dalvikvm(863): VFY: dead code 0x000b-0012 in 
Landroid/support/v8/renderscript/RenderScript;.setMessageHandler 
(Landroid/support/v8/renderscript/RenderScript$RSMessageHandler;)V
04-04 15:37:39.156: E/RenderScript_jni(863): No GC methods
04-04 15:37:39.166: W/dalvikvm(863): threadid=1: thread exiting with 
uncaught exception (group=0x40015560)
04-04 15:37:39.166: W/System.err(863): 
android.support.v8.renderscript.RSRuntimeException: Error loading RS jni 
library: java.lang.UnsatisfiedLinkError: Couldn't load RSSupport: 
findLibrary returned null
04-04 15:37:39.176: W/System.err(863):  at 
android.support.v8.renderscript.RenderScript.create(RenderScript.java:945)
04-04 15:37:39.176: W/System.err(863):  at 
android.support.v8.renderscript.RenderScript.create(RenderScript.java:982)
04-04 15:37:39.176: W/System.err(863):  at 
android.support.v8.renderscript.RenderScript.create(RenderScript.java:968)

Because the renderscript included .so files for armeabi-v7a, x86, and mips, 
I tried the x86 emulator.
On the *2.3.3 x86 emulator*, the error is a bit different.

04-05 15:44:30.173: W/dalvikvm(1281): Unable to resolve superclass of 
Landroid/support/v8/renderscript/RenderScript$2; (316)
04-05 15:44:30.173: W/dalvikvm(1281): Link of class 
'Landroid/support/v8/renderscript/RenderScript$2;' failed
04-05 15:44:30.173: E/dalvikvm(1281): Could not find class 
'android.support.v8.renderscript.RenderScript$2', referenced from method 
android.support.v8.renderscript.RenderScript.setErrorHandler
04-05 15:44:30.173: W/dalvikvm(1281): VFY: unable to resolve new-instance 
890 (Landroid/support/v8/renderscript/RenderScript$2;) in 
Landroid/support/v8/renderscript/RenderScript;
04-05 15:44:30.182: D/dalvikvm(1281): VFY: replacing opcode 0x22 at 0x0009
04-05 15:44:30.182: D/dalvikvm(1281): VFY: dead code 0x000b-0012 in 
Landroid/support/v8/renderscript/RenderScript;.setErrorHandler 
(Landroid/support/v8/renderscript/RenderScript$RSErrorHandler;)V
04-05 15:44:30.182: W/dalvikvm(1281): Unable to resolve superclass of 
Landroid/support/v8/renderscript/RenderScript$1; (317)
04-05 15:44:30.182: W/dalvikvm(1281): Link of class 
'Landroid/support/v8/renderscript/RenderScript$1;' failed
04-05 15:44:30.182: E/dalvikvm(1281): Could not find class 
'android.support.v8.renderscript.RenderScript$1', referenced from method 
android.support.v8.renderscript.RenderScript.setMessageHandler
04-05 15:44:30.182: W/dalvikvm(1281): VFY: unable to resolve new-instance 
889 (Landroid/support/v8/renderscript/RenderScript$1;) in 
Landroid/support/v8/renderscript/RenderScript;
04-05 15:44:30.182: D/dalvikvm(1281): VFY: replacing opcode 0x22 at 0x0009
04-05 15:44:30.182: D/dalvikvm(1281): VFY: dead code 0x000b-0012 in 
Landroid/support/v8/renderscript/RenderScript;.setMessageHandler 
(Landroid/support/v8/renderscript/RenderScript$RSMessageHandler;)V
04-05 15:44:30.182: E/RenderScript_jni(1281): No GC methods
04-05 15:44:30.182: D/dalvikvm(1281): Trying to load lib 
/data/data/*/lib/libRSSupport.so 0xb74bfe00
04-05 15:44:30.182: D/dalvikvm(1281): Added shared lib 
/data/data/*/lib/libRSSupport.so 0xb74bfe00
04-05 15:44:30.182: D/dalvikvm(1281): No JNI_OnLoad found in 
/data/data/*/lib/libRSSupport.so 0xb74bfe00, skipping init
04-05 15:44:30.182: D/dalvikvm(1281): Trying to load lib 
/data/data/*/lib/librsjni.so 0xb74bfe00
04-05 15:44:30.182: E/RenderScript_jni(1281): Error loading RS jni library: 
java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1311]:   
801 cannot locate '__strlen_chk'...

Does anyone succeed to run RenderScript with 19.0.3 build-tools?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to