Installing the Java Development Kit (JDK)

Android requires the Java Development Kit (JDK) version 7 (JDK 7) or 6 (JDK 6). We used JDK 7. To download the JDK for Windows, OS X or Linux, go to

You need only the JDK. Choose the 32-bit or 64-bit version based on your computer hardware and operating system. Most recent computers have 64-bit hardware—check your system’s specifications. If you have a 32-bit operating system, you must use the 32-bit JDK. Be sure to follow the installation instructions at

Get Android™ How to Program, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.