Home | History | Annotate | Download | only in installing
      1 page.title=Installing the SDK
      2 walkthru=1
      3 
      4 @jd:body
      5 
      6 
      7 <p>You should have already downloaded the <a href="{@docRoot}sdk/index.html">Android SDK</a>. Now
      8 you need to set up your development environment.</p>
      9 
     10 <p>The SDK you've downloaded is not the complete SDK environment. It includes only the core SDK tools, which you can
     11 use to download the rest of the SDK packages (such as the latest system image).</p>
     12 
     13 
     14 <div id="win" class="docs" style="display:none">
     15   
     16 <h3>Getting started on Windows</h3>
     17 <p>Your download package is an executable file that starts an installer. The installer checks your machine
     18   for required tools, such as the proper Java SE Development Kit (JDK) and installs it if necessary.
     19   The installer then saves the Android SDK Tools into a default location (or you can specify the location).</p>
     20 
     21 <p>Make a note of the name and location of the SDK directory on your system&mdash;you will need to
     22 refer to the SDK directory later, when setting up the ADT plugin and when using
     23 the SDK tools from the command line.</p>
     24 
     25 <p>Once the tools are installed, the installer offers to start the Android SDK Manager. Start it and
     26 continue with the installation guide by clicking the
     27 <strong>Next</strong> link on the right.</p>
     28 
     29 </div>
     30 
     31   
     32 
     33 <div id="mac" class="docs" style="display:none">
     34   
     35 <h3>Getting started on Mac</h3>
     36 
     37 <p>Your download package is {@code .zip}.
     38   Unpack it to a safe location on your machine. By default, the SDK files are unpacked
     39 into a directory named <code>android-sdk-mac_x86</code>.</p>
     40 
     41 <p>Make a note of the name and location of the SDK directory on your system&mdash;you will need to
     42 refer to the SDK directory later, when setting up the ADT plugin and when using
     43 the SDK tools from the command line.</p>
     44 
     45 <p>Now continue with the installation guide by clicking the
     46 <strong>Next</strong> link on the right.</p>
     47 
     48 </div>
     49 
     50 
     51 
     52 
     53 <div id="linux" class="docs" style="display:none">
     54   
     55 <h3>Getting started on Linux</h3>
     56 
     57 <p>Your download package is a {@code .tgz}.
     58   Unpack it to a safe location on your machine. By default, the SDK files are unpacked
     59 into a directory named <code>android-sdk-linux_x86</code>.</p>
     60 
     61 <p>Make a note of the name and location of the SDK directory on your system&mdash;you will need to
     62 refer to the SDK directory later, when setting up the ADT plugin and when using
     63 the SDK tools from the command line.</p>
     64 
     65 <p>Now continue with the installation guide by clicking the
     66 <strong>Next</strong> link on the right.</p>
     67 
     68 
     69 <h4 id="Troubleshooting">Troubleshooting Ubuntu</h4>
     70 
     71 <ul>
     72   <li>If you need help installing and configuring Java on your
     73     development machine, you might find these resources helpful:
     74     <ul>
     75       <li><a href="https://help.ubuntu.com/community/Java">https://help.ubuntu.com/community/Java </a></li>
     76       <li><a href="https://help.ubuntu.com/community/Java">https://help.ubuntu.com/community/JavaInstallation</a></li>
     77     </ul>
     78   </li>
     79   <li>Here are the steps to install Java and Eclipse, prior to installing
     80   the Android SDK and ADT Plugin.
     81     <ol>
     82       <li>If you are running a 64-bit distribution on your development
     83       machine, you need to install the <code>ia32-libs</code> package using
     84       <code>apt-get:</code>:
     85       <pre>apt-get install ia32-libs</pre>
     86       </li>
     87       <li>Next, install Java: <pre>apt-get install sun-java6-jdk</pre></li>
     88       <li>The Ubuntu package manager does not currently offer an Eclipse 3.6
     89       version for download, so we recommend that you download Eclipse from
     90       eclipse.org (<a
     91       href="http://www.eclipse.org/downloads/">http://www.eclipse.org/
     92       downloads/</a>). A Java or RCP version of Eclipse is recommended.</li>
     93       <li>Follow the steps given in previous sections to install the SDK
     94       and the ADT plugin. </li>
     95     </ol>
     96   </li>
     97 </ul>
     98 
     99 </div>
    100 
    101 <p><a href='' onclick='showAll();return false;'>Other platforms</a></p>
    102 
    103 <script>
    104   var $osDocs;
    105   if (navigator.appVersion.indexOf("Win")!=-1) {
    106     $osDocs = $('#win');
    107   } else if (navigator.appVersion.indexOf("Mac")!=-1) {
    108     $osDocs = $('#mac');
    109   } else if (navigator.appVersion.indexOf("Linux")!=-1) {
    110     $osDocs = $('#linux');
    111   }
    112 
    113   if ($osDocs.length) {
    114     // reveal only the docs for this OS
    115     $osDocs.show();
    116   } else {
    117     // not running a compatible OS, so just show all the docs
    118     $('.docs').show();
    119   }
    120   
    121   function showAll() {
    122     $('.docs').each(function() {
    123       if (!$(this).is(':visible')) {
    124         console.log('show')
    125         $(this).show();
    126       } else {
    127         console.log('hide')
    128         $(this).hide();
    129         $osDocs.show();
    130       }
    131     });
    132   }
    133 </script>
    134