Before installing Android Studio on Mac OS X, it's important to have the necessary editions of both the operating system and Java. In this video, you'll learn the essential steps to take to download the installer and add the program to your system. You'll learn the security precautions to take, as well as a setup that will make your Android development more efficient.
- Before installing Android Studio on Mac OS10, make sure that you have the required versions of the operating system and of Java. Check your Mac's operating system by clicking the Apple Menu and choosing About This Mac. To program with the Android SDK, you need at least Version 10.5.8. I have 10.9.4, so I'm in good shape. Next, check your Java version. Go to Terminal, and type java -version.
I recommend using either Java 7 or the most recent version, Java 8. Any update number will do. If you see Java 6, or if you're prompted to install Java, take a break from watching this movie and install Java 8. In a browser, go to java.oracle.com From this page, click the Java SE link and, from there, click the download link under JDK. After accepting the License Agreement, you will be able to download the version of the JDK for Mac OS10 x64.
Complete the installation, confirm that you have Java 8 installed by typing java -version in Terminal again, and then come back to this point in the movie. Now that you have the right version of Java, you're ready to install Android Studio. Go back to your browser, and navigate to this web page at developer.android.com/sdk/installing/studio.html As of the time of this recording, this web page offers Android Studio Beta, Version 0.8.0 You'll see a big link in the lower right-hand area.
Click it, and follow the rest of the prompts to download the installer to your system. I've downloaded the .dmg file to my Desktop, but you can place it anywhere on your hard disk. To start the installation, double-click the .dmg file to open it. Then, drag and drop Android Studio into the Applications folder. It's a large file, so it might take a few moments to install. When it's complete, the software is installed and ready to use, but, before I run the software for the first time, I'll go to the Applications folder, and I'll locate my Android Studio folder, which is really a package, and I'll right-click on it, and select Show Package Contents.
The most important folder to know about in this package is the SDK folder. This is the default copy of the Android SDK for your copy of Android Studio. If you're already programming with the SDK, and you've customized your copy, you can configure Android Studio to point to that version, but this is the version it will be using by default. You'll also see a LIB folder with a bunch of .jar files. These .jar files are used by Android Studio. The only bit of information you really need at this point is the location of the SDK folder, and that's because there are times when you might have to run applications directly from there, but, for all other purposes, all you need to do, to start up Android Studio, is to go to the Applications folder and double-click the package.
As with all software downloaded from the internet, you should see a Security prompt the first time you open the package. Click the Open button, and you'll go onto the next step. Also, the first time you run Android Studio, you might see this dialog, labeled Complete Installation. Select your choice and then click OK, and that'll open up Studio for the first time. When Android Studio's Welcome Screen opens, you might see this prompt, indicating that a new version of Android Studio is available.
There is also, sometimes, a link at the bottom of the Welcome Screen, labeled Check for updates now. If you click Check, it'll tell you which version is available. Right now I'm being told that Version 0.8.2 is available in the beta channel. I'm going to ignore that for the moment because I'll talk about updating your copy of Android Studio later in the course, so I'll click Remind Me Later, and I'll give you one more note about troubleshooting. Depending on your Security settings and your operating system version, when you try to open Android Studio, you might see a warning that says the package is damaged and should be moved to the Trash.
If this happens, go to your System Preferences, and then to your Security settings. If necessary, click the lock to make changes, and provide your password if it's requested, and then take a look at this option. In order to run Android Studio, you might have to change this setting to allow apps downloaded from Anywhere. After you make the change, click the lock again. If you have further problems opening Android Studio, go back to that web page, where you downloaded the software from, and you'll find all sorts of links explaining what Android Studio is and how it works, and offering some troubleshooting suggestions.
Note: This course was revised on 8/20/2014 to reflect changes in the .0.8.4 beta version of Android Studio.
- Exploring Android Studio and IntelliJ IDEA
- Installing Android Studio
- Creating projects with Android Studio
- Navigating the user interface
- Designing activity layouts
- Analyzing and refactoring code
- Debugging and packaging apps