It seems to be a limitation on the current gradle logic for handling the support renderscript lib. I work around it by copying the renderscript-v8.jar and the pre packaged *.so files from /build-tools/19.0.3/renderscript to the appropriate project.
The *.so files are added under main/jniLibs and are automatically detected and deployed to the appropriate build variant (arm7, mips, x86).
The jar needs to be announced in the gradle file because the buildsystem ignores jar files by default:
dependencies{
compile files('libs/renderscript-v8.jar')
}
The benefit of this approach is that when building the test apk the renderscript support package is not deployed in the test apk and thus the tests run without interference of the bug mentioned in the question (java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation)
It would be smarter to use
renderscriptTargetApi 19
renderscriptSupportMode true
Because that way the current performance enhancements are applied to the appropriate app and it looks cleaner, thus easier to maintain. But for my part testability > less overhead in update behaviour.
Once the renderscriptSupportMode directive works properly I switch back.