I have imported the basic RenderScript sample project.
Showing Android Studio
Error: Symbol class ScriptC_saturation can not be found
this is imported
Import android.app.activity; Import Android.graphics. Bitmap; Import and roid.graphics.BitmapFactory; Import Android.os.AsyncTask; Importroid.os.Bundle; Import android.widget.ImageView; Import android.widget.SeekBar; Import android.widget.SeekBar.OnSeekBarChangeListener; Import android.support.v8.renderscript *;
I searched around but could not find much about it. What am I missing?
[edit] This is my build.gradle
file.
buildscript {repositories {mavenCentral ()} dependency {classpath 'com.android.tools.build:gradle:.8.+'}} Apply the plugin: 'Android' dependency {// Add support for Libre SDK 8 compilation "com.android.support:support-v4:19.0.+" compile "com.android.support:gridlayout-v7:19.0.+" compile files ('renderscript-v8.jar ')} // Sample Build // uses multiple directories to keep boilerplate and common code separate from multiple sample codes. & Lt; String & gt; Dirs = ['main', // main sample code; Look here for interesting things. 'Normal', // multiple components reused by 'template') / boilerplate code, which is generated by sample template process Android {compileSdkVersion 19 buildToolsVersion "19.0.1" SourceSet {main {dirs.each {dir - & gt; Java.srcDirs "src / $ {dir} / java" res.srcDirs "src / $ {dir} / res"}} instrumentTest.setRoot ('test') instrumentTest.java.srcDirs = ['test / src'] defaultConfig {RenderscriptTargetApi 18 renderscriptSupportMode true}}}
A render script file (in saturation zip file The missing version has now been uploaded, please try.
Comments
Post a Comment