Renderscript支持未在Android 2.2上运行 [英] Renderscript support not running on android 2.2

查看:88
本文介绍了Renderscript支持未在Android 2.2上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我对渲染脚本的支持有问题,我正在使用带有更新的Android SDK构建工具的eclipse,我有一个渲染脚本应用程序,该应用程序设置了android:minSdkVersion = 8和android:targetSdkVersion = 19属性.在android 4.4上运行,但是当我尝试在android 2.2上运行时,得到以下控制台输出,由于无效的APK文件,安装失败!
请检查logcat输出以获取更多详细信息.
发射取消了! .为什么APK无效?renderscript支持也应该支持android 2.2.

任何帮助将不胜感激:)

BCD

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

推荐答案

开发使用RenderScript的Android应用程序时,您可以通过以下两种方式之一访问其API:

android.renderscript-此类包中的API在运行Android 3.0(API级别11)及更高版本的设备上可用.这些是RenderScript的原始API,目前尚未更新.
android.support.v8.renderscript-此软件包中的API可通过支持库获得,该库可让您在运行Android 2.2(API级别8)及更高版本的设备上使用它们.
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.


这篇关于Renderscript支持未在Android 2.2上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆