Expert Android Studio. Dundar Onur
Чтение книги онлайн.
Читать онлайн книгу Expert Android Studio - Dundar Onur страница 5
Installing Android Studio for Microsoft Windows 10
This section covers the installation instructions for Android Studio on Microsoft Windows 10.
WARNING
Make sure you are connected to Internet while you are installing the Android Studio because installation process includes downloading required Android SDK installation files from the web.
1. Click the Download Android Studio for Windows link to download the latest Android Studio installer exe file.
2. Run the exe file after the download completes. You will see the window shown in Figure 1.9.
3. Click the Next button to select installation components. The Android Studio option can't be changed, but you can deselect the Android SDK, Emulator, and Intel HAXM installations, as shown in Figure 1.10.
4. The next window prompts you for installation paths for Android Studio and Android SDK separately.
5. As shown in Figure 1.11, the installation asks about Intel HAXM memory configuration, and lets you choose a custom memory configuration.
Figure 1.9 Android Studio Setup window
Figure 1.10 Android Studio Setup configuration for Windows
Figure 1.11 Intel HAXM configuration dialog for Windows
TIP
Recommended memory for HAXM is 2GB, but you can change that based on your hardware. We recommend that you install HAXM if you plan to use the emulator.
HAXM is a hardware-assisted virtualization engine that lets you use your computer's processor to generate x86 Android images. Without HAXM, the emulator's performance will greatly suffer.
You are now ready to launch Android Studio on Windows. The first time you launch Android Studio, it asks you to select the theme for the IDE, as shown in Figure 1.12.
Figure 1.12 Android Studio theme selection on Windows
Finally, the installation completes and Android Studio is ready to work on Android application projects.
Installing Android Studio for Mac OS X
This section covers the basic steps to install Android Studio on Mac OS X.
1. From the page shown in Figure 1.8, click the Download Android Studio for MAC link.
Download the android-studio-ide-141.2178183-mac.dmg file, which includes the Android Studio IDE installer for Mac OS.
2. Launch the file you just downloaded.
3. Drag and drop the Android Studio.app icon into Applications folder, as shown in Figure 1.13.
Figure 1.13 Android Studio installer for Mac OS X
After copying Android Studio to the Applications folder, Android Studio is ready to launch. You can then remove the .dmg file from your system.
When you first launch Android Studio, it asks if you want to install Android SDK, the Android emulator, and Intel HAXM. It will also ask for the setup path for them, as shown in Figure 1.14.
Figure 1.14 Android Studio Setup Wizard for Max OS X
If you selected Intel HAXM installation, you are asked for the amount of RAM memory you want to make available for the virtual devices, as shown in Figure 1.15.
Figure 1.15 Intel HAXM configuration for Mac OS X
After you click Finish from the Emulator Settings dialog box, a window with an installation summary will display as shown in Figure 1.16.
Figure 1.16 Summary window for Max OS X installation
Installing Android Studio for Linux
Navigate to the download page shown in Figure 1.9 to download Android Studio for Linux (android-studio-ide-141.2178183-linux.zip). After you've downloaded the file, follow these steps:
1. Enter the following command to extract the setup file to the android-studio folder where you executed the command:
user@ubuntu$ unzip android-studio-ide-141.2178183-linux.zip
In this example you move the android-studio folder to the /opt directory. You can select your own home directory as well, to make it available only to you.
user@ubuntu$ sudo mv android-studio /opt
2. Start Android Studio with the ./opt/android-studio/bin/studio.sh command.
When you first launch Android Studio on Linux, it will display the screen shown in Figure 1.17.
Then the setup wizard will ask for Standard or Custom installation.
3. Select Custom installation to see the installation packages.
The wizard moves to the window shown in Figure 1.18 where you can select an Android Studio UI theme.
Figure 1.18 shows that the IntelliJ theme has been selected for this installation.
4. Select the Android Studio, Android SDK, and Emulator as shown in Figure 1.19.
5. Indicate the installation path for Android SDK in the Android SDK Location field at the bottom of the dialog box, as shown in Figure 1.19. Click Finish to complete the Android SDK installation.
Figure 1.17 Android Studio Setup Wizard