Domanda

Although I found a lot of instruction how to implement Renderscript via Support Library on API's lower than 3.0, there are also a lot of problems still. I followed a lot of instructions e.g. on android-developers.blogspot.de step by step, however, it didn't work at all. The thing is, that it causes errors, when I'm changing the line in the generated file ScriptC_example (which by default uses android.renderscript.* -> not available in API's lower than 3.0) to android.support.v8.renderscript.*

So whatever I tried, it always ended up in a mess... Has anyone an idea how to fix this implementation? I really need help, otherwise I'm going to get insane...

Screenshots:

EDIT: project.properties:

# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-8
renderscript.target=8
sdk.buildtools=19.0.1
È stato utile?

Soluzione

your project.properties should contain

target=android-18
renderscript.target=18
renderscript.support.mode=true
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top