Home | History | Annotate | Download | only in preview
      1 page.title= Preview
      2 meta.keywords="preview", "android"
      3 page.tags="preview", "developer preview"
      4 page.image=images/cards/card-n-sdk_2x.png
      5 
      6 @jd:body
      7 
      8 
      9 <div id="qv-wrapper">
     10   <div id="qv">
     11 <ol>
     12   <li><a href="#get-as13"> Android Studio 2.1</a></li>
     13   <li><a href="#get-sdk"> Android N SDK</a>
     14     <ol>
     15       <li><a href="#docs-dl"></a>
     16     </ol>
     17   </li>
     18   <li><a href="#java8"> Java 8 JDK</a></li>
     19   <li><a href="#create-update"></a></li>
     20   <li><a href="#next"></a></li>
     21 </ol>
     22   </div>
     23 </div>
     24 
     25 <p> Android N Preview 
     26 </p>
     27 
     28 <p> Android N <a href="{@docRoot}preview/download.html"> Android N </a>
     29 </p>
     30 
     31 <img src="{@docRoot}preview/images/n-preview-setup.png" width="700" alt="" />
     32 
     33 
     34 <h2 id="get-as13"> Android Studio 2.1</h2>
     35 
     36 <p>Android N  <a href="{@docRoot}preview/j8-jack.html">Java 8 </a> Jack 
     37  Android Studio 2.1  Jack  Java 8  Android Studio 2.1 
     38 
     39 
     40  Jack  JDK 8  Android N 
     41 
     42 </p>
     43 
     44 <p> Android Studio <strong>Help &gt; Check for Update</strong> Mac  <strong>Android Studio &gt; Check for Updates</strong> Android Studio 2.1 
     45 
     46 </p>
     47 
     48 <p><a href="{@docRoot}studio/"> Android Studio 2.1</a>
     49 </p>
     50 
     51 
     52 <h2 id="get-sdk"> N Preview SDK</h2>
     53 
     54 <p> Android N API  Android Studio  Android N Preview SDK
     55 </p>
     56 
     57 <ol>
     58   <li> <strong>Tools &gt;Android &gt; 
     59 SDK Manager</strong>  SDK </li>
     60 
     61   <li> <strong>SDK Platforms</strong>  <strong>Android N Preview</strong> 
     62 </li>
     63 
     64   <li> <strong>SDK Tools</strong> 
     65  <strong>Android SDK Build Tools</strong><strong>Android SDK
     66  Platform-Tools</strong>  <strong>Android SDK Tools</strong> 
     67 
     68   </li>
     69 
     70   <li> <strong>OK</strong>
     71 
     72   </li>
     73 </ol>
     74 
     75 <h3 id="docs-dl"> N Preview </h3>
     76 
     77 <p>
     78    Android N API  N Preview  Android  API  Android N API API 
     79 
     80 
     81 
     82 
     83 </p>
     84 
     85 <table>
     86   <tr>
     87     <th scope="col"></th>
     88     <th scope="col"></th>
     89   </tr>
     90   <tr>
     91     <td style="white-space: nowrap">
     92     <a href="{@docRoot}shareables/preview/n-preview-3-docs.zip">n-preview-3-docs.zip</a></td>
     93     <td width="100%">
     94       MD5:19bcfd057a1f9dd01ffbb3d8ff7b8d81<br>
     95       SHA-1:9224bd4445cd7f653c4c294d362ccb195a2101e7 
     96     </td>
     97   </tr>
     98 <table>
     99 
    100 
    101 
    102 <h2 id="java8"> Java 8 JDK</h2>
    103 
    104 <p> Android N  Android Studio 2.1  Java 8 Developer Kit (JDK 8)
    105  JDK 8 
    106 </p>
    107 
    108 <p> Android Studio  JDK </p>
    109 
    110 <ol>
    111   <li> Android Studio  Android  <strong>File &gt; Project Structure</strong> Project Structure <strong>File &gt; Other Settings &gt; Default Project Structure</strong> 
    112 
    113 
    114 
    115 
    116    </li>
    117    <li> <strong>SDK Location</strong>
    118    </li>
    119    <li> <strong>JDK Location</strong>  Java 8 JDK  <strong>OK</strong>
    120 
    121 
    122    </li>
    123 </ol>
    124 
    125 <img src="{@docRoot}preview/images/studio-jdk-location.jpg" width="700" alt="" />
    126 
    127 
    128 <h2 id="create-update"></h2>
    129 
    130 <p>
    131    Android N API
    132 </p>
    133 
    134 <p> Java 8  <a href="{@docRoot}preview/j8-jack.html">Java 8 </a> Java 8  Jack 
    135 
    136 
    137 </p>
    138 
    139 
    140 <h3 id="update"></h3>
    141 
    142 <p> <code>build.gradle</code> 
    143 
    144 
    145 </p>
    146 
    147 <pre>
    148 android {
    149   compileSdkVersion <strong>'android-N'</strong>
    150   buildToolsVersion <strong>'24.0.0-rc3'</strong>
    151   ...
    152 
    153   defaultConfig {
    154      minSdkVersion <strong>'N'</strong>
    155      targetSdkVersion <strong>'N'</strong>
    156      ...
    157   }
    158   ...
    159 }</pre>
    160 
    161 
    162 <h3 id="create"></h3>
    163 
    164 
    165 <p> Android N Preview SDK </p>
    166 
    167 <ol>
    168   <li> <strong>File &gt; New Project</strong>Target Android Devices
    169 
    170   </li>
    171   <li> <strong>Phone and Tablet</strong> </li>
    172   <li> <strong>Phone and Tablet</strong>  <strong>Minimum SDK</strong>  <strong>N: Android API 23, N Preview (Preview)</strong>
    173 
    174 </li>
    175 </ol>
    176 
    177 
    178 <h2 id="next"></h2>
    179 
    180 <ul>
    181   <li><a href="{@docRoot}preview/download.html"> Android N </a></li>
    182   <li><a href="{@docRoot}preview/behavior-changes.html"></a> <a href="{@docRoot}preview/api-overview.html">Android N API </a> Android N 
    183 
    184 
    185 </li>
    186 </ul>
    187 
    188