diff --git a/docs/html/guide/topics/renderscript/compute.jd b/docs/html/guide/topics/renderscript/compute.jd
index 2e7ce56322244..eef8cda3858de 100644
--- a/docs/html/guide/topics/renderscript/compute.jd
+++ b/docs/html/guide/topics/renderscript/compute.jd
@@ -185,50 +185,101 @@ precision (such as SIMD CPU instructions).
You can check and update the installed version of these tools in the
Android SDK Manager.
-
- Note: Use of Support Library RenderScript APIs is not currently supported with
- Android Studio or Gradle-based builds.
-
-To use the Support Library RenderScript APIs in Eclipse:
+To use the Support Library RenderScript APIs:
- Make sure you have the required Android SDK version and Build Tools version installed.
- - Open the {@code project.properties} file in the root folder of your application project.
- - Add the following lines to the file:
+
- Update the settings for the Android build process to include the RenderScript settings:
+
+
For Android Studio or Gradle-based builds
+
+ - Open the {@code build.gradle} file in the app folder of your application module.
+ - Add the following RenderScript settings to the file:
+
+
+android {
+ compileSdkVersion 19
+ buildToolsVersion "19.0.3"
+
+ defaultConfig {
+ minSdkVersion 8
+ targetSdkVersion 16
+
+ renderscriptTargetApi 18
+ renderscriptSupportModeEnabled true
+
+ }
+}
+
+
+
+ The settings listed above control specific behavior in the Android build process:
+
+
+ - {@code renderscriptTargetApi} - Specifies the bytecode version to be generated. We
+ recommend you set this value to the highest available API level and set
+ {@code renderscriptSupportModeEnabled}
+ to {@code true}. Valid values for this setting are any integer value
+ from 11 to the most recently released API level. If your minimum SDK version specified in your
+ application manifest is set to a different value, that value is ignored and the target value
+ in the build file is used to set the minimum SDK version.
+ - {@code renderscriptSupportModeEnabled} - Specifies that the generated bytecode should fall
+ back to a compatible version if the device it is running on does not support the target
+ version.
+
+ - {@code buildToolsVersion} - The version of the Android SDK build tools to use. This value
+ should be set to {@code 18.1.0} or higher. If this option is not specified, the highest
+ installed build tools version is used. You should always set this value to ensure the
+ consistency of builds across development machines with different configurations.
+
+
+
+
+ For Eclipse
+
+ - Open the {@code project.properties} file in the root folder of your application project.
+ - Add the following lines to the file:
+
renderscript.target=18
renderscript.support.mode=true
sdk.buildtools=18.1.0
-
+
+ The settings listed above control specific behavior in the Android build process:
+
+
+ - {@code renderscript.target} - Specifies the bytecode version to be generated. We
+ recommend you set this value to the highest available API level and set
+ {@code renderscript.support.mode} to {@code true}. Valid values for this setting are any
+ integer value from 11 to the most recently released API level. If your minimum SDK version
+ specified in your application manifest is set to a higher value, this value is ignored and
+ the target value is set to the minimum SDK version.
+ - {@code renderscript.support.mode} - Specifies that the generated bytecode should fall
+ back to a compatible version if the device it is running on does not support the target version.
+
+ - {@code sdk.buildtools} - The version of the Android SDK build tools to use. This value
+ should be set to {@code 18.1.0} or higher. If this option is not specified, the highest
+ installed build tools version is used. You should always set this value to ensure the
+ consistency of builds across development machines with different configurations.
+
+
+
+
+
+
+
- In your application classes that use RenderScript, add an import for the Support Library
classes:
+
import android.support.v8.renderscript.*;
+
-
-
-The {@code project.properties} settings listed above control specific behavior in the Android
- build process:
-
-
- - {@code renderscript.target} - Specifies the bytecode version to be generated. We
- recommend you set this value the highest available API level and set {@code
- renderscript.support.mode} to {@code true}. Valid values for this setting are any integer value
- from 11 to the most recently released API level. If your minimum SDK version specified in your
- application manifest is set to a higher value, this value is ignored and the target value is set
- to the minimum SDK version.
- - {@code renderscript.support.mode} - Specifies that the generated bytecode should fall
- back to a compatible version if the device it is running on does not support the target version.
-
- - {@code sdk.buildtools} - The version of the Android SDK build tools to use. This value
- should be set to {@code 18.1.0} or higher. If this option is not specified, the highest
- installed build tools version is used. You should always set this value to ensure the
- consistency of builds across development machines with different configurations.
-
+ 0l>
Using RenderScript from Java Code
diff --git a/docs/html/tools/support-library/features.jd b/docs/html/tools/support-library/features.jd
index ee1ed724b94c0..573baad98d838 100644
--- a/docs/html/tools/support-library/features.jd
+++ b/docs/html/tools/support-library/features.jd
@@ -373,9 +373,8 @@ com.android.support:recyclerview-v7:21.0.0
developer guide.
- Note: Use of RenderScript with the support library is supported with the Android
- Eclipse plugin and Ant build tools. It is not currently supported with Android Studio or
- Gradle-based builds.
+ Note: Use of RenderScript with the support library is supported with Android
+ Studio and Gradle-based builds, as well as the Eclipse plugin and Ant build tools.