From ef11c2e0b1c8dacc801565d8e27f897a02be4713 Mon Sep 17 00:00:00 2001 From: "smain@google.com" Date: Tue, 14 Jun 2016 17:03:36 -0700 Subject: [PATCH] Update the DP4 setup instruction for api level 24 Change-Id: I8db52d56b1c33e02cffb589a19b1cb1ed20894f4 --- docs/html/preview/setup-sdk.jd | 48 +++++++++++++++++----------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/html/preview/setup-sdk.jd b/docs/html/preview/setup-sdk.jd index 58ca1d0b174a9..3e95f3e864c0d 100644 --- a/docs/html/preview/setup-sdk.jd +++ b/docs/html/preview/setup-sdk.jd @@ -76,19 +76,15 @@ Android N Preview SDK in Android Studio as follows:

Get the N Preview reference documentation

-

- Note: The N Preview (API level 24) reference documentation - is now available online at Beginning with the Preview 4 release, the API reference for the +N platform (API level 24) is now available online at developer.android.com/reference/.

-

- Detailed information about the Android N APIs is available in the N Preview - reference documentation, which you can download from the following table. - This package contains an abridged, offline version of the Android developer - web site, and includes an updated API reference for the Android N APIs and an - API difference report. -

+

If you'd like an offline copy of the API reference, you can download it +from the following table. The download also includes an incremental diff report +for API changes between the Preview 3 and Preview 4 release, which is not +available online.

@@ -97,11 +93,11 @@ Android N Preview SDK in Android Studio as follows:

+ n-preview-4-docs.zip
- n-preview-3-docs.zip - MD5: 19bcfd057a1f9dd01ffbb3d8ff7b8d81
- SHA-1: 9224bd4445cd7f653c4c294d362ccb195a2101e7 + MD5: f853e3ba0707083336dfa780b8fed9a7
+ SHA-1: 36fcbc497cc2e63b1bc1d629c304b0ba43a88946
@@ -137,9 +133,11 @@ you don't already have the latest version, download JDK 8 now.

Update or Create a Project

-

- To use the Android N APIs, your project must be configured appropriately. -

+

Now that the N platform API level is "24" instead +of "N", you can configure your projects normally with this API level (and even +publish your apps compiled with API 24 on Google Play). Just be sure that you've +updated your project to use Android SDK Build Tools 24.0.0 and +Android SDK Platform-Tools 24.0.0.

If you plan to use Java 8 language features, you should also read Java 8 Language Features @@ -156,18 +154,20 @@ how to configure your project with the Jack compiler.

 android {
-  compileSdkVersion 'android-N'
-  buildToolsVersion '24.0.0-rc3'
+  compileSdkVersion 24
+  buildToolsVersion '24.0.0'
   ...
 
   defaultConfig {
-     minSdkVersion 'N'
-     targetSdkVersion 'N'
+     targetSdkVersion 24
      ...
   }
   ...
 }
+

Now that the API level 24 is final, you can compile against it and keep your +minSdkVersion to whatever version is appropriate for your app.

+

Create a new project

@@ -176,12 +176,12 @@ android {
  1. Click File > New Project. and follow the steps until - you reach the Target Android Devices page. + you reach the Target Android Devices page.
  2. -
  3. On this page, select Phone and Tablet option.
  4. +
  5. On this page, select the Phone and Tablet check box.
  6. Under Phone and Tablet option, in the Minimum SDK option list, select - N: Android API 23, N Preview (Preview).
  7. + API 24: Android 6.X (N Preview).