From 11e3f9145bd714e4e5abfd4f5f4c9e497c55110a Mon Sep 17 00:00:00 2001 From: Adarsh Fernando Date: Tue, 19 Apr 2016 16:30:44 -0700 Subject: Docs: Added that Method References work with earlier API levels Change-Id: I99b3e263be1ed43f1cecdcdba5cfcd833cfec023 --- docs/html/preview/j8-jack.jd | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'docs/html') diff --git a/docs/html/preview/j8-jack.jd b/docs/html/preview/j8-jack.jd index 44e1af0de36c..feb458b6dda2 100644 --- a/docs/html/preview/j8-jack.jd +++ b/docs/html/preview/j8-jack.jd @@ -58,7 +58,7 @@ installed the Android N Preview SDK, see - Lambda expressions + Lambda expressions (also available on API level 23 and lower)
  • @@ -70,10 +70,17 @@ installed the Android N Preview SDK, see - Method References + Method References (also available on API level 23 and lower)
  • +

    + Note: To test lambda expressions and method references on + earlier versions of Android, go to your {@code build.gradle} + file, and set {@code compileSdkVersion} and {@code targetSdkVersion} to 23 or + lower. You will still need to enable the Jack + toolchain to use these Java 8 features. +

    Additionally, the following Java 8 language feature APIs are now available: @@ -125,15 +132,6 @@ installed the Android N Preview SDK, see -

    - Note: The Android N bases its implementation of - lambda expressions on anonymous classes. This approach allows them to be - backwards compatible and executable on earlier versions of Android. To test - lambda expressions on earlier versions, remember to go to your {@code - build.gradle} file, and set {@code compileSdkVersion} and {@code - targetSdkVersion} to 23 or lower. -

    -

    Enabling Java 8 Features and the Jack Toolchain

    @@ -166,7 +164,7 @@ installed the Android N Preview SDK, see
    To enable the Java 8 language features and Jack for your project, enter the - following in your module-specific {@code build.gradle} file: + following in your module-level {@code build.gradle} file:

    @@ -185,7 +183,7 @@ android {
     }
     
    -

    +

    Known Issues

    @@ -209,4 +207,4 @@ examples of these tools are:

    If you find other problems while using Jack, please report bugs.

    \ No newline at end of file +"http://tools.android.com/filing-bugs">please file a bug.

    \ No newline at end of file -- cgit v1.2.3-59-g8ed1b