Why Develop For Android?
With over 1 billion Android devices already activated, Android represents an incredible opportunity for developers. Android Studio is a latest and most widely accepted IDE designed by Google itself. If you want to develop apps in android then it is highly recommended to use Android Studio.
Quick Overview
A typical native android application is written using XML for the frontend (the User Interface) and JAVA for the backend.
JAVA All the programming part in android development is done using JAVA. Although it’s a great advantage, if you know a thing or two about programming in Java, but even if you know any object oriented programming language, then it will not be much difficult to relate to the concepts used during development. In short if you know C++ or C then also you are at peace.
XML This is used to build the app’s user interface. All user interface elements in an Android app are built using View and ViewGroup objects. It has drag and drop User Interface
Running the app An android application can run either on your device or in the emulator that comes bundled with the SDK. Since the emulators can be slow, it is always recommended to use an actual device. This link contains the detailed explanation for setting up your device/emulator for testing.
Installation of Android Studio
JDK and JRE are essential for JAVA to run on your machine.
Installing JAVA
There is no need to install Java as latest Android Studio versions already come with JDK bundled with it. See here for more information.
Windows Users
(linux users click here)
Installing IDE
• Go to this link and select “Download Android Studio for Windows”.
• Check the “ I have read and agree with the above terms and conditions” box and Download Android Studio For Windows.
• Install studio after downloading. Keep on clicking next button and at last click finish.
• Android Studio will open up. A window similar to the below one would appear.
• Select Do not import settings since you don’t have any. Again keep on clicking next and at last finish. It will take some time for downloading files.
• There are still some dependencies left to install. These can be install by building your first project so head to recommended section for things you’ll need for this lecture.
Linux Users
Installing IDE
- Get your Android Studio from here.
- Click on the Download Android Studio button and accept the terms to get your download started.
- Extract the file where you want to install Android Studio. Preferred installation location is the user’s home directory (
5. A dialog appears like the one below. Select do not import settings.
6. You will now see the Android Studio Setup wizard as shown below.
7. Keep on clicking next until you see a Dialog similar to one below. Click Finish.
8. Wait while Android Studio downloads necessary components. Click Finish.
9. The Android Studio window shall open. Click the option Create Desktop Entry from the Configure Menu to create shortcut to android studio in launcher. This avoids the need to open the terminal each time you want to launch the Studio.
Recommended
Bring your USB cable so that you can test application on your own device!
(For first time users)
- Ensure an interent connection on your machine
- Start Android Studio
- Click Start a new Android Studio Project
- On screen Configure you new project leave default options and click Next
- Leave default options unchanged and click Next.
- Select Empty Activity and click Next.
- Leave default options unchanged and click Finish.
- If Gradle build fails (check the status bar at the bottom) and Android Studio asks to download additional packages, allow it.
- Keep repeating step 8 till you get a successful gradle build (status bar will say: Gradle build finished).
- Keep this project open as you will run this test app on your phone later.
(Enable USB Debugging in your phone and run)
- Follow this to enable USB debugging in your Android phone.
(Run the Test app on your phone)
- After following the above two steps, it’s time to build and run your first test app (A HelloWorld app, if you will) on your phone.
- Connect your phone to your PC via the usb cable.
- Allow USB debugging if asked to in your Android device.
- Now, open the empty Project we created before in Android Studio.
- Click Run ‘app’ (Shift + F10) option in the Run menu.
- A dialog should appear allowing you to select your device.
- Click OK and wait for your first app to run on your own phone.
These steps are necessary for first time user to ensure everything is downloaded when you come to the lecture.
If you have any trouble setting up your development environment, feel free to contact us!
Meet Android Studio
Android Studio is the official Integrated Development Environment (IDE) for Android app development. Based on the powerful code editor and developer tools from IntelliJ IDEA , Android Studio offers even more features that enhance your productivity when building Android apps, such as:
- A flexible Gradle-based build system
- A fast and feature-rich emulator
- A unified environment where you can develop for all Android devices
- Apply Changes to push code and resource changes to your running app without restarting your app
- Code templates and GitHub integration to help you build common app features and import sample code
- Extensive testing tools and frameworks
- Lint tools to catch performance, usability, version compatibility, and other problems
- C++ and NDK support
- Built-in support for Google Cloud Platform, making it easy to integrate Google Cloud Messaging and App Engine
This page provides an introduction to basic Android Studio features. For a summary of the latest changes, see the Android Studio release notes.
Project structure

Figure 1. The project files in Android project view.
Each project in Android Studio contains one or more modules with source code files and resource files. The types of modules include:
- Android app modules
- Library modules
- Google App Engine modules
By default, Android Studio displays your project files in the Android project view, as shown in figure 1. This view is organized by modules to provide quick access to your project's key source files. All the build files are visible at the top level, under Gradle Scripts.
Each app module contains the following folders:
- manifests: Contains the AndroidManifest.xml file.
- java: Contains the Java and Kotlin source code files, including JUnit test code.
- res: Contains all non-code resources such as XML layouts, UI strings, and bitmap images.
The Android project structure on disk differs from this flattened representation. To see the actual file structure of the project, select Project instead of Android from the Project menu.
You can also customize the view of the project files to focus on specific aspects of your app development. For example, select the Problems view of your project to display links to the source files containing any recognized coding and syntax errors, such as a missing XML element closing tag in a layout file.

Figure 2. A layout file with a problem in Problems view.
For more information, see Projects overview.
The user interface
The Android Studio main window consists of several logical areas, shown in figure 3.

Figure 3. The Android Studio main window.
- Toolbar: Carry out a wide range of actions, including running your app and launching Android tools.
- Navigation bar: Navigate through your project and open files for editing. It provides a more compact view of the structure visible in the Project window.
- Editor window: Create and modify code. Depending on the current file type, the editor can change. For example, when viewing a layout file, the editor displays the Layout Editor.
- Tool window bar: Use the buttons on the outside of the IDE window to expand or collapse individual tool windows.
- Tool windows: Access specific tasks like project management, search, version control, and more. You can expand them and collapse them.
- Status bar: Display the status of your project and the IDE itself, as well as any warnings or messages.
To organize the main window for more screen space, hide or move the toolbars and tool windows. You can also use keyboard shortcuts to access most IDE features.
To search across your source code, databases, actions, elements of the user interface, and more, do one of the following:
- Double-press the Shift key.
- Click the magnifying glass in the upper right-hand corner of the Android Studio window.
This can be very useful if, for example, you are trying to locate a particular IDE action that you have forgotten how to trigger.
Tool windows
Instead of using preset perspectives, Android Studio follows your context and automatically brings up relevant tool windows as you work. By default, the most commonly used tool windows are pinned to the tool window bar at the edges of the application window.
Navigate the tool window using the following:
- To expand or collapse a tool window, click the tool’s name in the tool window bar. You can also drag, pin, unpin, attach, and detach tool windows.
- To return to the default layout of the current tool window, click Window > Restore Default Layout. To customize your default layout, click Window > Store Current Layout as Default.
- To show or hide the entire tool window bar, click the window icon in the bottom left-hand corner of the Android Studio window.
- To locate a specific tool window, hover over the window icon and select the tool window from the menu.
You can also use keyboard shortcuts to open tool windows. Table 1 lists the shortcuts for the most common tool windows.
Table 1. Keyboard shortcuts for tool windows
| Tool window | Windows and Linux | macos |
|---|---|---|
| Project | Alt+1 | Command+1 |
| Version Control | Alt+9 | Command+9 |
| Run | Shift+F10 | Control+R |
| Debug | Shift+F9 | Control+D |
| Logcat | Alt+6 | Command+6 |
| Return to Editor | Esc | Esc |
| Hide All Tool Windows | Control+Shift+F12 | Command+Shift+F12 |
To hide all toolbars, tool windows, and editor tabs, click View > Enter Distraction Free Mode. To exit Distraction Free Mode, click View > Exit Distraction Free Mode.
Use Speed Search to search and filter within most tool windows in Android Studio. To use Speed Search, select the tool window and then type your search query.
Code completion
Android Studio has three types of code completion, which you can access using keyboard shortcuts.
Table 2. Keyboard shortcuts for code completion
| Type | Description | Windows and Linux | macOS |
|---|---|---|---|
| Basic Completion | Displays basic suggestions for variables, types, methods, expressions, and so on. If you call basic completion twice in a row, you see more results, including private members and non-imported static members. | Control+Space | Control+Space |
| Smart Completion | Displays relevant options based on the context. Smart completion is aware of the expected type and data flows. If you call Smart Completion twice in a row, you see more results, including chains. | Control+Shift+Space | Control+Shift+Space |
| Statement Completion | Completes the current statement for you, adding missing parentheses, brackets, braces, formatting, and so on. | Control+Shift+Enter | Command+Shift+Enter |
To perform quickfixes and show intention actions, press Alt+Enter .
Find sample code
The Code Sample Browser in Android Studio helps you find high-quality, Google-provided Android code samples based on the currently highlighted symbol in your project. For more information, see Find sample code.
Navigation
Here are some tips to help you navigate Android Studio.
Use the Recent Files action to switch between your recently accessed files:
To bring up the Recent Files action, press Control+E ( Command+E on macOS). By default, the last accessed file is selected. With this action, you can also access any tool window through the left column.
Use the File Structure action to view the structure of the current file and quickly navigate to any part of your current file:
To bring up the File Structure action, press Control+F12 ( Command+F12 on macOS).
Use the Navigate to Class action to search for and navigate to a specific class in your project. Navigate to Class supports sophisticated expressions, including camel humps (which lets you search by the capitalized letters in an element's camel-cased name), paths, line navigate to (which lets you navigate to a specific line within the file), middle name matching (which lets you search for a part of the class name), and many more. If you call it twice in a row, it shows you the results out of the project classes.
To bring up the Navigate to Class action, press Control+N ( Command+O on macOS).
Use the Navigate to File action to navigate to a file or folder:
To bring up Navigate to File action, press Control+Shift+N ( Command+Shift+O on macOS). To search for folders rather than files, add a "/" at the end of your expression.
Use the Navigate to Symbol action to navigate to a method or field by name:
To bring up the Navigate to Symbol action, press Control+Shift+Alt+N ( Command+Option+O on macOS).
To find all the pieces of code referencing the class, method, field, parameter, or statement at the current cursor position, press Alt+F7 ( Option+F7 on macOS).
Style and formatting
As you edit, Android Studio automatically applies formatting and styles as specified in your code style settings. You can customize the code style settings by programming language, including specifying conventions for tabs and indents, spaces, wrapping and braces, and blank lines.
To customize your code style settings, click File > Settings > Editor > Code Style (Android Studio > Preferences > Editor > Code Style on macOS.)
Although the IDE automatically applies formatting as you work, you can also explicitly call the Reformat Code action. To call the action, press Control+Alt+L ( Opt+Command+L on macOS). To auto-indent all lines, press Control+Alt+I ( Control+Option+I on macOS).

Figure 4. Code before formatting.

Figure 5. Code after formatting.
Version control basics
Android Studio supports a variety of version control systems (VCSs), including Git, GitHub, CVS, Mercurial, Subversion, and Google Cloud Source Repositories.
After importing your app into Android Studio, use the Android Studio VCS menu options to enable VCS support for the desired system, create a repository, import the new files into version control, and perform other version control operations.
To enable VCS support, follow these steps:
- From the Android Studio VCS menu, select Enable Version Control Integration.
- From the menu, select a VCS to associate with the project root.
- Click OK.
The VCS menu now displays a number of version control options based on the system you selected.
Note: You can also use the File > Settings > Version Control menu option to set up and modify the version control settings.
Gradle build system
Android Studio uses Gradle as the foundation of the build system, with more Android-specific capabilities provided by the Android Gradle plugin. This build system runs as an integrated tool from the Android Studio menu and independently from the command line. You can use the features of the build system to do the following:
- Customize, configure, and extend the build process.
- Create multiple APKs for your app with different features, using the same project and modules.
- Reuse code and resources across source sets.
By employing the flexibility of Gradle, you can achieve all of this without modifying your app's core source files.
Android Studio build files are named build.gradle . They are plain text files that use Groovy syntax to configure the build with elements provided by the Android Gradle plugin. Each project has one top-level build file for the entire project and separate module-level build files for each module. When you import an existing project, Android Studio automatically generates the necessary build files.
To learn more about the build system and how to configure your build, see Configure your build.
Build variants
The build system can help you create different versions of the same app from a single project. This is useful when you have both a free version and a paid version of your app or if you want to distribute multiple APKs for different device configurations on Google Play.
For more information about configuring build variants, see Configure build variants.
Multiple APK support
Multiple APK support lets you efficiently create multiple APKs based on screen density or ABI. For example, you can create separate APKs of an app for the hdpi and mdpi screen densities, while still considering them a single variant and letting them share test APK, javac , dx , and ProGuard settings.
For more information about multiple APK support, read Build multiple APKs.
Resource shrinking
Resource shrinking in Android Studio automatically removes unused resources from your packaged app and library dependencies. For example, if your app uses Google Play services to access Google Drive functionality, and you are not currently using Google Sign-In, then resource shrinking can remove the various drawable assets for the SignInButton buttons.
Note: Resource shrinking works in conjunction with code shrinking tools, such as ProGuard.
For more information on shrinking code and resources, see Shrink, obfuscate, and optimize your app.
Manage dependencies
Dependencies for your project are specified by name in the build.gradle file. Gradle finds dependencies and makes them available in your build. You can declare module dependencies, remote binary dependencies, and local binary dependencies in your build.gradle file.
Android Studio configures projects to use the Maven Central Repository by default. This configuration is included in the top-level build file for the project.
For more information about configuring dependencies, read Add build dependencies.
Debug and profile tools
Android Studio helps you debug and improve the performance of your code, including inline debugging and performance analysis tools.
Inline debugging
Use inline debugging to enhance your code walkthroughs in the debugger view with inline verification of references, expressions, and variable values.
Inline debug information includes:
- Inline variable values
- Objects that reference a selected object
- Method return values
- Lambda and operator expressions
- Tooltip values

Figure 6. An inline variable value.
To enable inline debugging, in the Debug window, click Settings and select Show Values Inline.
Performance profilers
Android Studio provides performance profilers so you can easily track your app’s memory and CPU usage, find deallocated objects, locate memory leaks, optimize graphics performance, and analyze network requests.
To use performance profilers, with your app running on a device or emulator, open the Android Profiler by selecting View > Tool Windows > Profiler.
For more information about performance profilers, see Profile your app performance.
Heap dump
When profiling memory usage in Android Studio, you can simultaneously initiate garbage collection and dump the Java heap to a heap snapshot in an Android-specific HPROF binary format file. The HPROF viewer displays classes, instances of each class, and a reference tree to help you track memory usage and find memory leaks.
For more information about working with heap dumps, see Capture a heap dump.
Memory Profiler
Use Memory Profiler to track memory allocation and watch where objects are being allocated when you perform certain actions. These allocations help you optimize your app’s performance and memory use by adjusting the method calls related to those actions.
For information about tracking and analyzing allocations, see View memory allocations.
Data file access
The Android SDK tools, such as Systrace and Logcat, generate performance and debugging data for detailed app analysis.
To view the available generated data files:
- Open the Captures tool window.
- In the list of the generated files, double-click a file to view the data.
- Right-click any HPROF files to convert them to the standard.
- Investigate your RAM usage file format.
Code inspections
Whenever you compile your program, Android Studio automatically runs configured lint checks and other IDE inspections to help you easily identify and correct problems with the structural quality of your code.
The lint tool checks your Android project source files for potential bugs and optimization improvements for correctness, security, performance, usability, accessibility, and internationalization.

Figure 7. The results of a lint inspection in Android Studio.
In addition to lint checks, Android Studio performs IntelliJ code inspections and validates annotations to streamline your coding workflow.
Annotations in Android Studio
Android Studio supports annotations for variables, parameters, and return values to help you catch bugs, such as null pointer exceptions and resource type conflicts.
The Android SDK Manager packages the Jetpack Annotations library in the Android Support Repository for use with Android Studio. Android Studio validates the configured annotations during code inspection.
For more details about Android annotations, see Improve code inspection with annotations.
Log messages
When you build and run your app with Android Studio, you can view adb output and device log messages in the Logcat window.
Sign in to your developer account
Sign in to your developer account in Android Studio to access additional tools that require authentication, such as Firebase. By signing in, you give those tools permission to view and manage your data across Google services.
Once you open a project in Android Studio, you can sign in to your developer account or switch developer accounts as follows:
Click the profile icon at the end of the toolbar, as shown in figure 8.

Figure 8. Sign in using the profile icon.
In the window that appears, do one of the following:
-
If you're not yet signed in, click Sign In and allow Android Studio to access the listed services.
If you're already signed in, click Add Account to sign in with another Google account.
Alternatively, you can click Sign Out and repeat the previous steps to sign in to a different account.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Курс по изучению Kotlin и Android Studio с нуля до Junior. #1 Введение. Установка Android Studio

Всем привет, меня зовут Антон и сегодня я начинаю новый курс по созданию мобильных приложений для операционной системы Android с помощью среды разработки Android Studio и языка программирования Kotlin.
На сегодняшний день Kotlin является предпочтительным языком программирования для создания мобильных приложений. В не так далеком 2019 году, такой техно-гигант как компания Google (Гугл) объявила Kotlin приоритетным языком программирования для разработки Android-приложений, тем самым поставив огромный плюс в копилку Kotlin.
Так же мобильные приложения еще можно создавать на языке программирования Java, но Java постепенно хотят вытеснить, об этом и говорит событие 2019 года с объявлением приоритетного языка от компании Google. Поэтому мы будем делать это только на Kotlin.
Для кого же предназначен данный курс?
Этот курс предназначен для абсолютно начинающих, у которых нет знаний ни в Java ни в Kotlin, то-есть вообще не знакомых с программированием, но желающих изучить данный язык. Поэтому цель данного курса создать полноценный tutorial, благодаря которому вы изучите язык программирования Kotlin с нуля до Junior, а так же по ходу курса создадите несколько полноценных приложений, которые в дальнейшем можно будет добавить в своё портфолио для поиска работы.
Tuturial — обучение, учебное пособие. Это пошаговое (поэтапное) объяснение какого-либо процесса, инструкция по выполнению чего-либо.
Начало
Для начала, пред тем, как мы установим среду разработки Android Studio, давайте разберемся, что же такое вообще среда разработки?! Если говорить простыми слова, то среда разработки это некая программа в которой содержатся другие микро-программы или инструменты, которые нам позволяют создавать, тестировать приложения и так далее.
Ошибки при установки Android Studio
Для того чтобы Android Studio установилась корректно и без ошибок, нужно выполнить несколько обязательных действий:
Имя пользователя обязательно должно быть написано на латинском языке, например — «Admin»,»User» и так далее. Если имя пользователя будет написано на русском языке, то появится ошибка (см. Рисунок 1).
Все дело в том что при установке, Android Studio устанавливает специальную папку для Эмулятора (Emulator). Эмулятор — это специальное виртуальное устройство (в нашем случае смартфон), который у нас будет на компьютере, в котором мы сможем тестировать созданные нами приложения.
Мы сначала будем тестировать приложения на этом виртуальном смартфоне, называемым эмулятор, а после уже сможем тестировать на настоящем. Либо же сможем сразу тестировать на настоящем смартфоне, как захотите, все зависит лишь от вашего желания, но сажу сразу, на эмуляторе удобнее.
Так вот, чтобы эмулятор работал, устанавливается специальная папка и на пути этой папки должны быть только латинские буквы. Что это означает?! А означает это следующее — например я назвал имя пользователя на своем ПК «Антон», значит на пути к это папке, будет путь «С/Антон/Avd». То-есть, на пути где устанавливается папка для эмулятора(Avd), встречается мое имя «Антон» русскими буквами, все остальное может быть на латинском, но мое имя пользователя на русском и вот тогда случается ошибка и программа установки будет говорить, что на пути установки не должно быть вот таких русских букв. Поэтому сразу напишите имя пользователя латинскими буквами, чтобы не было проблем.
Еще одно основное действие — на вашем ПК должна быть включена «Виртуализация». Виртуализация включается в БИОС. БИОС у каждого разный, вам нужно будет посмотреть в интернете, допустим — «как войти в БИОС на компьютере» зайдете на первый сайт и все поймете, ничего сложного, поэтому не будем заострять на этом внимания.
Ну вот и все, это две основные ошибки, которые у Вас могут возникнуть в процессе установки Android Studio. Если у Вас возникнут, какие либо еще ошибки, то пишите о них в комментариях и мы вместе постараемся их решить. Ну, а мы приступаем к установке Android Studio.
Установка Android Studio
Для того чтобы установить Android Studio переходим в любой браузер, в моем случае Google Chrome, и пишем в поиске «скачать Android Studio» или переходим по этой ссылке.
Открывается сайт (см. Рисунок 2)

Рисунок 2
Пролистываем в самый низ сайта до раздела системные характеристики (см. Рисунок 3) и проверяем соответствует ли наш ПК системным требованиям, если все ОК, переходим к загрузке Android Studio.

Рисунок 3
Обновляем страницу. Нас перекидывает в самый вверх страницы, там находим кнопку «Download Android Studio Electric Eel», нажимаем на нее и нам открывается лицензионное соглашение, которое пролистав вниз, нужно отметить галочкой о том, что мы прочитали условия (см. Рисунок 4). И все, нажимаем снова на кнопку «Download Android Studio Electric Eel» и начинается скачивание установщика.

Рисунок 4
Ждем пока загрузится установщик, это занимает некоторое время, в зависимости от скорости вашего интернета. После того как загрузился установщик, запускаем его. Появляется первоначальный экран установки, нажимаем кнопку Next (далее)(см. Рисунок 5).

Рисунок 5
После появляется окно где нужно поставить галочку в разделе Android Virtual Device(обязательно)(см. Рисунок 6), потому что это и будет наше виртуальное устройство на котором мы будем все тестировать.

Рисунок 6
Далее открывается окно где можно выбрать путь установки папки, или же оставить тот, который выбран автоматически(см. Рисунок 7)

Рисунок 7
После выбора пути, открывается окно с тем, как будет называться папка (можно оставить стандартно, а можно изменить, как захотите)(см. Рисунок 8). Далее жмем на кнопку «Install»(Установить), и ждем окончания установки.

Рисунок 8
По завершению установки, появится окно (см. Рисунок 9), где можно либо оставить галочку для запуска приложения сейчас, либо убрать, чтобы запустить позже. Мы же убираем галочку, и нажимаем кнопку «Finish»(Закончить).

Рисунок 9
Все, на этом этапе установка Android Studio закончена.
Итоги темы
В данной теме мы установили Android Studio, подробно изучили тонкости установки, указали на основные ошибки, которые могут возникнуть в процессе установки.
В следующей теме мы создадим первый проект, и пройдемся по основным пунктам меню в Android Studio, после чего уже приступим к изучению языка программирования Kotlin.
Android Studio: введение

Разработка программного обеспечения – перспективное направление в IT-сфере. Кроме софта для приставок и компьютеров сейчас на передовую стали выходить мобильные утилиты. Пример – Android. Это – популярная мобильная операционная система, устанавливаемая на смартфонах, планшетах и умных часах.
Писать программное обеспечение под Андроид можно через специальные среды. Самый распространенный вариант – Android SDK от компании Google. Данная программа проста в освоении и понятна даже новичку.
Далее в статье будет рассказано о том, как осуществляется настройка Андроид СДК, каким образом можно запускать среду, а также использовать его для создания приложений. Кроме стандартного Windows рассмотрим ОС Linux Ubuntu.
Краткое описание
AndroidStudio – это интегрированная среда разработки для работы с платформой Android. ПО было анонсировано 16 мая 2013 года компанией Google. Софт помогает разрабатывать разнообразные приложения и игры под Android.
Это – официальная среда программирования, находящаяся под поддержкой Google. В основе лежит IntelliJ IDEA от JetBeans.
Выделяется «студия» следующими особенностями:
- наличие встроенного эмулятора;
- мощный функционал и инструментарий для разработчиков;
- встроенный отладчик;
- понятный и хорошо продуманный интерфейс;
- документация на русском языке;
- множество туториалов и уроков, при помощи которых удастся быстро освоить платформу;
- «горячие клавиши»;
- возможность настроить Android Studio за несколько минут;
- совместимость с большинством популярных ОС.
Установка софта Android Studio производится без существенных затруднений. Справиться с этой задачей максимально быстро и точно помогут инструкции, приведенные ниже. За счет этого детища Google удается получать на выходе кроссплатформенные программы.
Требования для систем
Запуск рассматриваемой универсальной среды программирования на Windows – самый простой вариант. В Google полно документации и уроков, которые помогут не только инициализировать софт, но и грамотно использовать его.
Но перед тем, как проводить установку Android Studio, необходимо изучить минимальные системные требования ПО к системе. Иначе в работе приложения не исключены серьезные ошибки и тормоза.
Windows
Windows – популярное детище компании Microsoft. Эта ОС установлена у большинства пользователей по всему миру. В Google уверяют – для нормальной работы «студии» под Андроид требуются следующие параметры:
- Windows 7-10 (32 или 64 bit);
- оперативная память – минимум 2 ГБ, рекомендовано – 8 ГБ;
- свободное пространство – минимум 2 ГБ, рекомендуется – 4 ГБ;
- разрешение экрана 1280 x 800 пикселей;
- наличие JDK 8 версии;
- 64-разрядная ОС с процессором Intel и поддержкой Execute Disable, Intel EM64T, Intel VT-x – для ускоренного эмулятора.
Устройства с меньшей мощностью для запуска Android Studio не подойдут. Сейчас этим требования удовлетворяют почти все компьютеры.
Mac OS
Операционная система MacOS разработана компанией Apple. Для работы на ней требуется:
- 2 ГБ оперативной памяти минимум;
- 2 ГБ свободного пространства на устройстве;
- MacOS X 10.8.5 или новее;
- минимальное разрешение – 1280 на 800 пикселей;
- JDK 6 версии.
Этого будет достаточно для нормальной работы ПО. Но лучше иметь на устройстве 8 ГБ оперативной памяти и 4 ГБ пространства на ЖД.
Linux
Несколько лет назад популярностью стала пользоваться ОС Linux. В Google можно обнаружить немалое количестве версий этой системы. И на ней тоже вполне успешно проходит установка софта Android Studio.
Для этого требуется:
- компьютер с GNOME или KDE: протестированный на Убунту 12.04, Precis e Pangolin (64-битное распределение с поддержкой 32-разрядных программ);
- наличие библиотеки CNU C (glibc) от 2.11 версии;
- 2 ГБ оперативной памяти№
- 2 ГБ свободного места на жестком диске устройства;
- разрешение экрана от 1280 на 800 пискселей;
- процессор Intel с поддержкой Intel-VT-x, EN6 4, XD или AMD с визуализацией AMD-V.
Настройка и запуск рассматриваемой среды программирования от Google возможна только при соответствии компьютера заданным требованиям. Поэтому проверка информации является первым шагом к использованию ПО.
Инициализация
Теперь, когда с требованиями к системе удалось разобраться, можно приступать к инициализации. В MacOS и Windows процесс проходит примерно одинаково. Но для успешного запуска среды от Google требуется установка дополнительных утилит. А именно – Android Development Kit (JDK). Это связано с тем, что «студия» разработана Google на языке Java.
Установка Android Studio под Windows будет выглядеть так:
- Скачайте и запустите JDK. Отыскать инициализатор можно в поисковике Google.
- Загрузить архив со «студией».
- Распаковать полученный файл.
- Кликнуть дважды по соответствующему Мастеру Установки.
- Щелкнуть по Next.
- Выбрать тип установки. Рекомендуется остановиться на варианте «Стандартная».
- Задать тип дизайна страницы. Можно выбрать «темную» или «светлую» темы.
- Щелкнуть по кнопке «Далее».
- Проверить, не нужно ли вносить корректировки в установленный софт.
- Нажать на Finish.
- Дождаться завершения операции. Сначала будет запущен процесс активации приложения, затем – начнется непосредственная распаковка.
Теперь остается подтвердить процедуру. Можно настраивать JDK и сам Android Studio для первого проекта.
Под Linux
В случае с Linux Install проходит сложнее. Установить Android Студию здесь придется при помощи командной строки. В ней же осуществляется настройка среды разработки.
Для этого нужно:
- Провести установку Java: загрузить инициализатор, открыть командную строку и прописать там:
- После этого набрать:
- Загрузить отсюда Android Studio. Использовать для этого все пакеты «студии».
- Извлечь файл архива в подходящее место. Пример — /opt.
- Использовать имя файла загруженного архива:
Чтобы осуществить запуск среды, перейти к

в терминале, а затем выполнить:

Этого достаточно для загрузки и запуска ПО на Ubuntu или любом другом Линуксе. Для быстрого входа в систему и комфортной настройки Android Studio можно создать ФАЙЛ Рабочего Стола.
Для этого необходимо создать файл androidstudio.desktop через запуск команды:

После этого предстоит добавить строчки:

А здесь можно увидеть больше подробностей относительно установки и использования ПО на Ubuntu.
О настройке JDK
«Студия» не будет работать без JSD, который требуется правильно настроить. После этого среда разработки Google начнет функционировать исправно:
- Открыть «Свойства системы» в ОС.
- Перейти в «Дополнительные параметры».
- Переключиться в раздел «Переменные среды».
- Щелкнуть по «Создать». Здесь комментарии такие: имя – JAVA_HOME, значение – путь к папке с JDK, который был установлен ранее.
- Нажать на кнопку «Ок».
- Перезагрузить систему.
Это – настройка Android Studio, без которой создать собственный проект не получится.
Запуск
Теперь можно открывать приложение и создавать первый проект. Работать предстоит в «текстовом редакторе» с богатым функционалом. Процесс напоминает создание нового документа в «офисных» приложениях Windows:
- Запустить «Студию», кликнув по ярлыку на Рабочем Столе.
- Выбрать «новый проект».
- Щелкнуть по надписи Empty Activity.
- Выбрать язык программирования и указать название проекта.
Это – основные действия, которые помогут провести настройку «Студии» от Google. Далее останется создавать собственное ПО для Андроида.