原始来源

再AndroidStudio中使用V8包中的RenderScript,只需要修改项目的build.gradle中的代码即可.
对于android gradle plugin v0.14+:

android {    ...    defaultConfig {        ...        renderscriptTargetApi 19        renderscriptSupportModeEnabled true    }    ...}

android gradle plugin v0.13.3及以前的版本中:

android {        ...        defaultConfig {            ...            renderscriptTargetApi 19            renderscriptSupportMode true        }        ...    }

之后,我们就可以在2.2以上的代码中使用v8包中的RenderScript了,如:

import android.support.v8.renderscript.*

更多相关文章

  1. Android系列教程:TextView小组件的使用--附带超链接和跑马灯效果
  2. Execution failed for task ':app:preDebugAndroidTestBuild
  3. Android番外03_Umeng友盟统计集成
  4. Android(安卓)Studio SDK 各版本下载方法
  5. Eclipse+android 开发配置步骤
  6. Android客户端对服务端返回的xml文件内容进行解析
  7. Android(安卓)Sqlite 相关汇总
  8. 【学习Android遇到的错误】Unable to resolve target 'android-9
  9. android Intent的一些用法

随机推荐

  1. android xml属性大全
  2. android 4.0中的Fragment
  3. Android:EditText 所有属性
  4. Android中xml布局 详解
  5. Android 控件view的可见,不可见,隐藏的设
  6. Android知识梳理之Service整理
  7. android中点击事件的4种写法
  8. android:screenorientation
  9. android代码库之textview跑马灯效果
  10. Android Notes