- Установка Android Studio в Ubuntu 20.04
- Системные требования Android Studio:
- Установка Android Studio в Ubuntu
- 1. Установка из snap-пакета
- 2. Установка из центра приложений
- 3. Установка с официального сайта
- 4. Установка в JetBrains Toolbox
- Как удалить Android Studio
- Выводы
- Easily Install Android Studio in Ubuntu And Linux Mint
- Install Android Studio in Ubuntu and other distributions using Snap
- Alternative Method 1: Install Android Studio using umake in Ubuntu
- Alternative Method 2: Install Android Studio in Ubuntu and Linux Mint via unofficial PPA
- Uninstall Android Studio:
- How to Install Android Studio in Ubuntu 20.04
- 1. Installing Android Studio with the Official Android Repository
- Add Official Android Repository
- Update apt System Cache
- Installing Android Studio
- Launch Android Studio
- 2. Installing Android Studio with the snap application
- Conclusion
- About the author
- Karim Buzdar
Установка Android Studio в Ubuntu 20.04
Android Studio — это официальная и самая популярная интегрированная среда разработки Android-приложений. Программа разрабатывается корпорацией Google и содержит все необходимые возможности. Среда основана на IntelliJ IDEA, которая написана на Java.
Среди возможностей Android Studio не только написание, сборка и тестирование программ, но и поддержка загрузки их на устройство, интеграция с облаком и многое другое. В этой статье мы рассмотрим, как выполняется установка Android Studio в Ubuntu.
Системные требования Android Studio:
Рекомендованные системные требования:
- Дистрибутив — любой 64 битный дистрибутив с установленной glibc 2.31 или выше и окружением рабочего стола Gnome, KDE или Unity DE.
- Процессор — 64-битный, с поддержкой SSSE3 и Intel VT или AMD V;
- RAM — 8 Гб или больше;
- Свободное место на диске — 8 Гб;
- Разрешение экрана — 1280 x 800;
Установка Android Studio в Ubuntu
Вы можете установить Android Studio и Android SDK несколькими способами: c помощью snap-пакета, с официального сайта, из центра приложений, а также с использованием специального инструмента: JetBrains Toolbox. Каждый из способов имеет свои преимущества, и мы рассмотрим их все.
1. Установка из snap-пакета
Для установки Android Studio с помощью snap-пакета откройте терминал и выполните команду:
sudo snap install android-studio —classic
После завершения загрузки пакета программа будет доступна в главном меню.
2. Установка из центра приложений
Запустите центр приложений Ubuntu и введите в поиске название программы:
В списке выберите Android Studio и нажмите на кнопку Установить.
Дождитесь, пока инсталляция будет завершена.
Процесс установки может занять до 30 минут (зависит от скорости вашего интернет-соединения). По окончании загрузки вы сможете запустить приложение.
3. Установка с официального сайта
Прежде всего, вам необходимо загрузить установщик с официального сайта разработчиков. Перейдите на сайт и нажмите Download Android Studio.
Ознакомьтесь с лицензионным соглашением, активируйте чекбокс и нажмите кнопку Download Android Studio for Linux.
Выберите Сохранить файл и нажмите ОК.
Дождитесь завершения скачивания.
Когда файл будет загружен, перейдите в папку с загрузками и распакуйте содержимое архива в /opt. Для этого используйте команду вида (укажите скачанную вами версию приложения вместо 202.7486908):
/Загрузки/android-studio-ide-202.7486908-linux.tar.gz -C /opt
Чтобы добавить ярлык в меню приложений, создайте файл androidstudio.desktop командой:
Добавьте в файл следующий текст и сохраните его:
[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Exec=»/opt/android-studio/bin/studio.sh» %f
Icon=/opt/android-studio/bin/studio.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=android-studio
После этого установка будет завершена, и вы можете запустить среду разработки из главного меню:
Но окончательная установка Android Studio ещё не завершена — программа должна скачать все необходимые компоненты и настройки. Если вы работали с Android Studio ранее, в следующем окне вы можете скопировать свои настройки. Если нет, — выберите Do not import settings и нажмите ОК.
Потребуется некоторое время, чтобы программа могла загрузить нужные компоненты и настроить систему.
Приложение спросит, нужно ли отправлять статистику в Google. Эти данные могут использоваться для улучшения следующих версий Android Studio. Определитесь с выбором, чтобы продолжить установку.
На следующем экране нажмите кнопку Next:
После этого вы сможете выбрать между стандартной автоматической инсталляцией и ручной. Второй способ позволяет выбрать для установки отдельные компоненты.
Выберите предпочитаемую тему оформления:
Ознакомьтесь со списком компонентов и их расположением:
Приложение отобразит уведомление о том, можете ли вы использовать эмуляторы на своём компьютере (зависит от аппаратной составляющей).
Далее начнётся загрузка, которая может занять довольно много времени, скорость зависит от вашего интернет соединения:
Можно нажать кнопку Show Details, чтобы наблюдать очерёдность установки компонентов:
Когда загрузка завершится, вы можете нажать Finish и перейти к созданию нового проекта.
4. Установка в JetBrains Toolbox
JetBrains Toolbox — это официальный инструмент для установки и пакетного обновления Android Studio и других продуктов JetBrains. Загрузить JetBrains Toolbox можно с официального сайта разработчиков.
После этого перейдите в директорию, куда был скачан архив. Например, если это папка Загрузки, выполните команду:
Распакуйте скачанный архив. Имя файла актуально на момент написания статьи, но в будущем версия может отличаться:
tar -xzvf jetbrains-toolbox-1.20.8804.tar.gz
Перейдите в созданную директорию:
Чтобы запустить менеджер пакетов, введите команду:
После запуска Toolbox найдите Android Studio в списке и нажмите кнопку Install:
Подтвердите, что вы прочитали и принимаете лицензионное соглашение, после чего нажмите кнопку Install Android Studio.
Дождитесь, пока программа установится на ваш компьютер. После установки её можно будет запустить из главного меню Toolbox.
Как удалить Android Studio
Если вы устанавливали Android Studio с использованием snap-пакета или через центр приложений Ubuntu, её можно удалить командой:
sudo snap remove android-studio
Если же среда разработки была загружена с официального сайта, достаточно удалить распакованную папку вручную или с помощью команды в терминале:
sudo rm -Rf /opt/android-studio
Программа, установленная с помощью JetBrains Toolbox, удаляется с использованием этого инструмента. Перейдите в Toolbox, нажмите на значок шестерёнки рядом с Android Studio и выберите Delete.
Выводы
В этой статье мы рассмотрели, как выполняется установка Android Studio в Ubuntu 20.04 различными способами. Можете выбрать тот способ установки, который лучше всего подходит именно для вас. Если остались вопросы, задавайте их в комментариях.
Источник
Easily Install Android Studio in Ubuntu And Linux Mint
Last updated November 10, 2019 By Abhishek Prakash 56 Comments
Android Studio, Google’s own IDE for Android development, is a nice alternative to Eclipse with ADT plugin. Android Studio can be installed from its source code but in this quick post, we shall see how to install Android Studio in Ubuntu 18.04, 16.04 and corresponding Linux Mint variants.
Before you proceed to install Android Studio, make sure that you have Java installed in Ubuntu.
Install Android Studio in Ubuntu and other distributions using Snap
Ever since Ubuntu started focusing on Snap packages, more software have started providing easy to install Snap packages. Android Studio is one of them. Ubuntu users can simply find the Android Studio application in the Software Center and install it from there.
If you see an error while installing Android Studio from Software Center, you can use the Snap commands to install Android studio.
Alternative Method 1: Install Android Studio using umake in Ubuntu
You can also easily install Android Studio using Ubuntu Developer Tools Center, now known as Ubuntu Make. Ubuntu Make provides a command line tool to install various development tools, IDE etc. Ubuntu Make is available in Ubuntu repository.
To install Ubuntu Make, use the commands below in a terminal:
Once you have installed Ubuntu Make, use the command below to install Android Studio in Ubuntu:
It will give you a couple of options in the course of the installation. I presume that you can handle it. If you decide to uninstall Android Studio, you can use the same umake tool in the following manner:
Alternative Method 2: Install Android Studio in Ubuntu and Linux Mint via unofficial PPA
Thanks to Paolo Ratolo, we have a PPA which can be used to easily install Android Studio in Ubuntu 16.04, 14.04, Linux Mint and other Ubuntu based distributions. Just note that it will download around 650 MB of data. So mind your internet connection as well as data charges (if any).
Open a terminal and use the following commands:
Was it not easy? While installing a program from source code is fun in a way, it is always nice to have such PPAs. Once we have seen how to install Android Studio, lets see how to uninstall it.
Uninstall Android Studio:
If you don’t have already, install PPA Purge:
Now use the PPA Purge to purge the installed PPA:
That’s it. I hope this quick helps you to install Android Studio in Ubuntu and Linux Mint. Before you run Android Studio, make sure to install Java in Ubuntu first. In similar posts, I advise you to read how to install and configure Ubuntu SDK and how to easily install Microsoft Visual Studio in Ubuntu.
Any questions or suggestions are always welcomed. Ciao 🙂
Like what you read? Please share it with others.
Источник
How to Install Android Studio in Ubuntu 20.04
This article will show you how to install Android Studio in Ubuntu 20.04. Android Studio can be installed in Ubuntu 20.04 via the command line through two different methods:
- Using the Android official repository
- Using the snap application
1. Installing Android Studio with the Official Android Repository
You can install Android Studio by adding the Android official repository to the source list in your Ubuntu 20.04 system. Before starting the installation, you must first make sure that all the prerequisite Java packages are installed on your system. If these are not installed, then you will need to install the necessary Java JDK packages on your system. Follow the steps below to install Java JDK on your system.
Android Studio development depends on Java JDK packages. Check whether Java is already installed on your system via the following command.
If Java is installed on your system, then skip this step. Here, Java is already installed on the Ubuntu 20.04 system. Therefore, we do not need to install it on this system again. However, if Java is not installed on your system, you can install Java JDK-11 on your system with the following command:
Once installation is complete, move on to the next step.
Add Official Android Repository
In this step, you will need to add the official Android repository to the source list of your system. To do this, enter the following command in the terminal window:
When adding the repository, you will be prompted to press Enter to continue and Ctrl+c to cancel adding the required repository to your system.
Update apt System Cache
When you have successfully added the Android repository to the source list, then, you will update the apt cache of your system by executing the following command:
Installing Android Studio
Next, install Android Studio on your system. You can install Android Studio by executing the following command:
After entering the above command, it will take time to completely install Android Studio and all its dependencies.
Launch Android Studio
After successfully completing installation of Android Studio, it is now time to launch this tool on your system to verify that the installation has worked. Click on ‘Activities’ and then type ‘android’ in the application launcher bar. You will see the Android Studio icon appear under the search bar.
Next, you will need to configure the Android Studio components in your system. Click on the Android Studio icon and the following dialog will appear on your desktop.
You will select ‘Do not import settings’ from the displaying dialog and click ‘OK.’
After you select this option, the program will find all available important SDK components.
Now, the Android Setup Wizard will start up on your system. Click the ‘Next’ option.
In the following dialog, you will need to select the install type. Choose the ‘Standard’ option for the install type and click ‘Next.’
Next, you will select the user interface theme for Android Studio. The most popular theme among users is ‘Light.’ Therefore, you might want to choose the ‘Light’ UI theme. Continue by clicking ‘Next.’
Now, you will be asked to verify or review the installation settings. Click ‘Next’ if you are okay with the installation settings. Otherwise, click ‘Previous’ to change the installation settings.
In the next dialog, the emulator settings will be displayed in the window. You are now at the end of the setup process, so you will click the ‘Finish’ option.
In the next dialog, all the necessary Android components will start to download on your system.
Once the download process is completed, click ‘Finish.’
You will see the following Android Studio window open on your system. Here, you can choose to create a new Android Studio project, open an existing project, or perform other tasks for the program.
Congratulations! The installation and configuration processes of Android Studio on your system are now complete.
2. Installing Android Studio with the snap application
You can also install Android Studio in Ubuntu 20.04 using the snap application manager, simply by executing the following command:
If you no longer wish to use Android Studio, you can also uninstall the program using the following command:
Conclusion
That is all on how to install and configure Android Studio in Ubuntu 20.04. You can use this tool to explore more features on Ubuntu 20.04 system. I hope this article expanded your knowledge of the Android Studio program.
About the author
Karim Buzdar
Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. He blogs at LinuxWays.
Источник