Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello there, I have a problem with renderscript support, I'am using eclipse with updated Android SDK build tools, I have a renderscript app that has android:minSdkVersion= 8 and android:targetSdkVersion= 19 attributes set. On android 4.4 it runs, but when I try to run it on android 2.2 I get the following console output, "Installation failed due to invalid APK file!
Please check logcat output for more details.
Launch canceled! ". Why is the APK invalid? renderscript support is supposed to support android 2.2 as well.

Any help will be greatly appreciated :)

BCD
Posted

1 solution

When developing an Android application that uses RenderScript, you can access its API in one of two ways:

android.renderscript - The APIs in this class package are available on devices running Android 3.0 (API level 11) and higher. These are the original APIs for RenderScript and are not currently being updated.
android.support.v8.renderscript - The APIs in this package are available through a Support Library, which allows you to use them on devices running Android 2.2 (API level 8) and higher.
 
Share this answer
 
Comments
BupeChombaDerrick 25-Apr-14 12:56pm    
Yes I have "import android.support.v8.renderscrpt.*" line instead of "import android.renderscript.*" but APK installation fails on android 2.2.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900