Lab 1 Hello World
Lab 1 Hello World
• If you see a Java SE version is below 7 or if Java is not installed, you need
to install the latest version of the Java SE development kit before
installing Android Studio.
• To download the Java Standard Edition () Development Kit (JDK):
• Go to the Oracle Java SE downloads page.
• Click the Java SE Downloads icon to open the
Java SE Development Kit 8 Downloads page.
• In the box for the latest Java SE Development kit, you need to accept the
License Agreement in order to proceed. Then download the version
appropriate for the computer you are developing on.
Windows
• Set JAVA_HOME to the installation location.
• Start > Control Panel > System > Advanced System Settings > Environment
Variables System Variables > New
• Variable name: JAVA_HOME
• Variable value: C:\Program Files\Java\jdk1.7.0_80 (or whatever version your installation
is!)
• If the variable already exists, update it to this version of the JDK.
• Verify your JAVA_HOME variable from a cmd.exe terminal:
mac
1.Open Terminal.
2.Confirm you have JDK by typing "which java".
3.Check that you have the needed version of Java, by typing "java -version".
4.Set JAVA_HOME using this command in Terminal: export JAVA_HOME=`which java`
5.enter echo $JAVA_HOME to confirm the path.
Installing Android Studio
• https://developer.android.com/studio/install.html
Task 2: Create "Hello World" app