How to install android studio on windows

How to install Android Studio on Windows

In this How to install Android Studio on Windows guide, we will show you how to download, install & setup Android Studio. This tutorial is installing the Android Studio Version 3.5.1 on the Windows 10 OS, but steps should work equally well with other flavors of windows like Windows 7 & Windows 8. First, we will check the Prerequisites required to install Android Studio. Next, we download the Android Studio. Finally, we will show you how to install Android Studio

Table of Content

What is Android Studio

Android Studio is an integrated development environment to build, develop, test and distribute Android-based applications. The IDE is developed & maintained by google. It is built on top of JetBrains IntelliJ IDEA software.

We can develop apps for android in many ways. For Example, you can use Ionic, React Native, NativeScript, Java, Kotlin and now the latest flutter. Each employs different techniques to build the App. Frameworks like Ionic uses the Hybrid model, where you can build apps using HTML & Javascript and runs inside a native app shell in the device. The Apps using Java or Kotlin can runs natively in the device. The frameworks like React Native & NativeScript, which allows us to write in Javascript but converts them to the native code.

The Android Studio is preferred IDE when you choose Java or Kotlin as the language. But, even if you choose any other tool like Nativescript or React Native, you still need to install & Manage Android SDK and Android Emulator. These tools are part of the Android Studio and are installed along with it. Hence It is necessary to install the Android Studio.

How to install Android Studio on Windows

Prerequisites

OS & Hardware

  • Microsoft® Windows® 7/8/10 (32- or 64-bit)The Android Emulator only supports 64-bit Windows (learn more).
  • 4 GB RAM minimum, 8 GB RAM recommended
  • 2 GB of available disk space minimum
  • 4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
  • 1280 x 800 minimum screen resolution

Android Studio since version 2.2 is comes bundled with OpenJDK 8 . Hence there is no need to install the JDK separately. It is recommended to use the OpenJDK .

If you have an old Android project’s, which uses the JDK you can convert them to use the OpenJDK from the Android Studio menu, File > Project Structure -> SDK Location -> JDK location and check the Use embedded JDK

Downloading Android Studio

Under downloads for windows, you can either download 64 bit or 32-bit versions. The 32-bit version can only be downloaded as a zip file, while 64 bit is available as exe installer.

The current version as of this writing this article is Android Studio 3.5.1

Next, accept the license agreement and click on “ Download Android Studio for Windows ” to begin download.

For 32 Bit Windows
1. Go to C:\Program Files.
2. Create a folder named Android.
3. Unzip the downloaded Zip file
4. Copy the folder Android-Studio from the unzipped file to the folder C:\Program files\Android.
5. Rename the folder from Android-Studio to Android Studio
6. Locate the Studio.exe and create a shortcut on the desktop

Installing Android Studio

Double click on the downloaded installer to begin the Installation Process.

Click Next on Welcome to Android Studio Setup screen

After the welcome screen, you will be presented with the option to choose the components. Select both the option and click on Next.

Читайте также:  Mac os catalina iso vmware

Next, choose the installation location. Accept the defaults and click on Next to continue.

The next window is about selecting the start menu folder. Accept the defaults and click on Install to begin the installation.

Completing the Android Studio setup screen appears once the installation completes.

Select the Start Android Studio and Click on Finish. The Android Studio starts for the first time

Setup Android Studio

When you start Android Studio for the first time, it will ask you to Import the Studio settings. Since this is a fresh installation choose not to import settings and click on OK.

You may be asked to send the usage statistics to Google. choose accordingly.

The Android Studio will download a few components and then displays the Android Studio Setup Wizard dialogue box as shown below. Click Next to continue.

The second dialogue box asks for the install type. Select the default i.e. Standard and click on next to continue to next window.

The next up is the select UI Theme screen with two options Light & Darcula. Let us keep the default Light theme.

Finally, the Verify Settings dialogue appears, where you can verify the settings here. Click on Previous if you want to change any of the settings else click on finish to complete the installation.

Now, the Android Studio setup wizard starts to download the various components and installs them in the system. This will take time depending on your internet connection.

You may see HAXM Installation Failed error here. It will happen under the following circumstances

  • If the processor is non-intel based.
  • If you have not disabled the Hyper-V Manager

Ignore them for now and continue.

If you are on intel based CPU, then HAXM is very important. without which Android Virtual Device (AVD) runs very very slowly.

The following screen appears once all the essential components are downloaded and installed. At this point the Android Studio installation is complete.

Starting Android Studio

Once the installation and initial setup is complete, the Android Studio starts. Since it is the first time you are starting the Android Studio, it will be present you with the Welcome to Android Studio screen as shown below

Usually, Android Studio automatically opens the last Opened Project. But since it is a new Android Studio installation it will not open until you create a new project or open an existing one. Hence we will create a new project. Click on Start a new Android Studio Project.

The Create New Project appears. The first option is to select the type of activity. Choose Empty, which is the default and click Next.

Configure your project is the next screen. It will ask for the name of the Application, Package Name, Project path, language, and API Level. Keep the defaults and click on Finish.

Android Studio may start a few more downloads. Wait for it to finish. Once everything is downloaded and installed, the new project is created and you are taken to the Android workspace.

Now, you have completed all the installation steps and Android Studio is now ready to use

But before starting to build the Android Apps, there a few more things to be taken care of like Installing & Setting SDK & Android Emulator. We have covered them in the following Tutorials.

Android SDK Tutorial

Summary

We learned how to download, install and setup Android Studio in a Windows OS. We used the Windows 10 OS, But it will work any other flavors of windows like Windows 7 or Windows 8.

Установка и настройка Android Studio

В материале Вы узнаете, как производится установка и настройка Android Studio на операционных системах Windows 7 и 10 с подробным описанием имеющегося в программе функционала.

Установка Android Studio

Чтобы создавать приложения для Андроид стало проще, понятней и доступней — компания Гугл выпустила специальную программу «Android Studio». Краткий ответ на вопрос, что такое Android Studio, будет звучать так: это комплекс программных инструментов, который используется для разработки программного обеспечения. Эта IDE-среда нужна для создания приложений для устройств на платформе Андроид: часы, смартфоны, планшеты и т.д. Доступна для Windows, Linux, OS X.

Читайте также:  Windows 10 подключение телевизора через wifi

Невозможна установка Android Studio без Java Development Kit (JDK). Не забудьте принять лицензионное соглашение.

Перед тем, как установить Android Studio, убедитесь, что ОС и ПК соответствуют следующим показателям:

  • объем оперативной памяти не менее 2 ГБ (желательно 8 ГБ);
  • на диске 2-4 ГБ свободного места;
  • разрешение экрана как минимум 1280*800 пикселей;
  • для ускорения работы эмулятора требуется ОС разрядностью 64 бита, процессор Intel, поддерживающий функции Intel VT-x, Intel 64, Execute.

Разработка Android ведется на Java, а т.к. JDK — это необходимый элемент для работы с Java, то загрузка JDK требуется и для Android. Затем загружаем Андроид Студио.

Для Windows 7, 8, 10

Программа будет скачана архивом. Перед тем, как установить Android Studio на Windows 7, 8 или 10, необходимо распаковать архив.

  1. После того, как распаковка закончена, находим ярлычок программы и кликаем на него. Появляется окошко с приветствием. Жмем на «next».
  2. В следующем окне предлагается выбрать тип настройки для Android Studio. Выбираем стандартную версию.
  3. Теперь предлагается выбрать тип дизайна страницы — темный или светлый. Выбираем, какой нравится больше и жмем «next».
  4. Следом проверить, не требуется ли вносить изменения в уже установленные программы. Для первой загрузки ничего менять не нужно, поэтому нажимаем «финиш».
  5. После проверок и уточнений запускается процесс загрузки программы.
  6. Следом идет процесс распаковки.
  7. Дожидаемся завершения действия, и нажимаем «финиш».

Открылся Welcome экран. Первый урок о том, как установить Андроид Студио на Виндовс 7, 8 или 10, закончен.

Как использовать

В открытом виде доступны для выбора следующие действия: создать новый проект, открыть существующий и т.п. Внизу кнопки «Настройки» и «Помощь».

Создание проекта

  1. Нажимаем кнопку «Начать новый проект Андроид Студио».
  2. Выбираем Empty Activity.
  3. В следующем окошке выбираем язык программирования, указать название проекта.

Работа с файлами проекта

В открытом окне видно меню, где предлагается выбрать действия с шрифтом и файлами.

Стоит указать разницу между обычным программированием и программированием на Андроид: здесь программа пишется не в одном файле. Здесь группа файлов, которые собираются в одну группу.

Программирование осуществляется при помощи файла xml, привязка действий для нее — файл java. В папке res хранятся дополнительные ресурсы (например, изображения), в папке values — файлы XML.

Работа с визуальным редактором XML

Чтобы XML функционировал, нужны файлы JAVA. Для этого открываем losst.ru и под строками «импорт» добавляем: import Android.webkit.WebView. В конец метода onCreate пишем:

Опция Gradle

Этот инструмент требуется для автоматизации сборки. С ним процесс превращения группы файлов в полноценный APK упрощается. Настройки опции расположены в файлах с аналогичным названием. Для исправления неисправности в работе системы нажимаем «build» и «clear project».

Отладка и сборка

Чтобы запустить приложение на устройстве Андроид — нужно разрешить устанавливать приложения из непроверенных источников и производить отладку через порт USB. После того, как смартфон соединен с ПК, нужно нажать «run» и «run app».

В появившемся окне отмечаем выбранное устройство, после произойдет запуск.

Чтобы отслеживать сообщения и контролировать работу приложения, нужно нажать в меню «Андроид монитор», вкладка «LogCat», рядом расположены логи Андроид Студио. Сведения об устройстве и показатели нагрузки видны на вкладке «Монитор».

ADV Manager

Одна из главных функций этого приложения — обеспечение загрузки проектов на мобильные носители. Для скачивания менеджера нажимаем «Tools», затем «Android» и «ADV Manager».

Порядок действий следующий:

  1. Выбираем «Create Virtual Device».
  2. Потом отмечаем устройство, подлежащее эмулированию.
  3. Требуется скачать прошивку и согласится с условиями лицензионного договора.

SDK Manager

Эта программа «дарит» проекту такие функции, как использование камеры, блютуз, и т.п. Найти ее можно в разделе «Tools».

Далее выбираем нужный компонент.

Создание APK

В «Tools» нужно выбрать «Create signed APK»:

  1. Теперь выбираем или создаем хранилище ключей, чтобы оформить приложение на себя и защитить от возможного взлома в Гугл Плей.
  2. Выбираем «Release» в пункте «тип сборки» и нажимаем «финиш».

How to Install and Setup Android Studio for Android Development

This tutorial is on how to install Android Studio on Windows for Android development or just for installing ADB and Fastboot using SDK Manager. Android Studio was a project started by developers at Google. They acknowledged the criticism from people all over the world — which was, their Eclipse IDE looked dated and lacked tools to follow the latest guidelines for the newer APIs. What did they do then? They created Android Studio.

Читайте также:  Ldap каталог для windows

Android Studio is an all-in-one solution for developers who want to develop for Android. It adds in new features and couples it with a more intuitive UI. To sum it all, Google has been trying to make development easier, faster and much better by updating Android Studio with new features and capabilities. Google even added support for Kotlin first into their Android Studio for faster development. Android Studio consists of several components, like the SDK Manager, build tools, emulator etc. However, if you only want to install Android Studio for running apps and APK files in the emulator, we recommend reading our emulator guide here.

Features of Android Studio:

Are you new to Android Studio? We highly recommend moving to this IDE for Android development. Some of the feature highlights of Android Studio are:

  • Visual layout editor
  • APK analyzer
  • Fast emulator
  • Intelligent code editor
  • Flexible build system
  • Realtime profilers

All these features help you write better code, work faster and more efficiently. Powered by Gradle, Android Studio’s build system allows you to customize your build to generate multiple build variants for different devices from a single project.

How to Install Android Studio on Windows:

The installation process can take a while, but it is very simple and straight forward. All you need to do is carefully read the on-screen instructions and follow our guide as shown with screenshots.

The current version of Android Studio is v3.5.3 as of writing this tutorial. The screenshots might be a bit old, but the overall steps remain the same. These instructions can be followed for installing Android Studio on Windows 7, Windows 8 and Windows 10 desktop platforms.

Now let’s begin with the tutorial:

Step 1 – Download Java Platform (JDK) and install it on your computer. Once completed, then proceed to the next step. Java is important for the functioning of Android Studio.

Step 2 – Download Android Studio (android-studio-bundle-XX.XXXXXX-windows.exe) from the Android Developers website. This may take a while to download as the entire set up is about 2GB in size.

Step 3 – Run the EXE setup file you just downloaded. You should be greeted with a similar setup wizard screen as shown below. Click Next to begin!

Step 4 – Keep the default components selected for installation. Click Next.

Step 5 – We are sure you would not want to read through the entire license agreement. Click I Agree.

Step 6 – This is where you select the installation location for Android Studio and Android SDK. You may select another location / drive that has the required space available. Click Next to continue.

Step 7 – Yes, you would want to have to a Start menu folder. Just click Install to continue.

Step 8 – Installation should begin now. This may take a while for all the files to be extracted and installed to your computer.

Step 9 – Once the installation is completed, click Next.

Step 10 – Yep, this is it. You are all set to launch Android Studio for the first time. Click Finish to proceed.

This was easy so far, right? Well, this was just the installation part of Android Studio. Next you need to configure your Android Studio and install a few basic tools that are needed.

If you have any problems, comment below and we will get to you as soon as possible.

Haris lives on everything Android; has countless devices, apps and games to play with everyday. Currently serving as the Chief Editor at Team Android.

Оцените статью