博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
To Install Android Studio in Ubuntu 16.04 and Ubuntu 17.04
阅读量:4286 次
发布时间:2019-05-27

本文共 2577 字,大约阅读时间需要 8 分钟。

轉載自

Android Studio is the official IDE for Android. It’s open-source, distributed under the Apache license. This tutorial is going to show you how to install Android Studio on Ubuntu 16.04 and  using two methods: PPA and Ubuntu make. They are both very easy.

Install Java 8 on Ubuntu 16.04, Ubuntu 17.04

No matter which method you choose, you first need to install Java. It’s recommended to install , because it has a performance edge over OpenJDK. Run the following commands in terminal to install it from PPA.

sudo add-apt-repository ppa:webupd8team/javasudo apt-get updatesudo apt-get install java-common oracle-java8-installer

During the installation process you will need to accept the Oracle License agreement. Once installed we need to set Java environment variables such as

 
 JAVA_HOME on Ubuntu 16.04/17.04.

 

sudo apt-get install oracle-java8-set-defaultsource /etc/profile

The above two commands will set the correct Java environment variables.

Installing Android Studio in Ubuntu 16.04, 17.04 via PPA

 

At the time of this writting, the latest stable version is Android Studio 2.3.1, release on April 2, 2017. Run the following commands to add Android Studio PPA and install it.

sudo add-apt-repository ppa:maarten-fonville/android-studiosudo apt updatesudo apt install android-studio

 

During the installation, the latest Android Studio zip file will be downloaded from Google server. Once the installation is finished, you can open Android Studio from Unity Dash or your preferred app launcher.

If the icon didn’t load, then please log out and log back in or use the following command to start Android Studio.

/opt/android-studio/bin/studio.sh

Select whether you want to import previous Android Studio settings or not, then click OK.

If you encounter the error “unable to access Android SDK add-on list”, then you will need to set up a proxy.

Then follow the setup wizard. You will prompted to install Android SDK Tools, Android platform tools, Android support library, etc.

Installing Android Studio in Ubuntu 16.04/17.04 Using Ubuntu Make

You can easily install the latest version of Android Studio via Ubuntu make, which is a command line tool that allows you to download the latest version of popular developer tools.

Install Ubuntu make from PPA

sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-makesudo apt update sudo apt install ubuntu-make

Then install Android Studio using Ubuntu make.

umake android --accept-license

umake will download and install all required component like latest android SDK, Android platform tools, etc. It will also create a desktop icon.

转载地址:http://nrsgi.baihongyu.com/

你可能感兴趣的文章
Bootstrap model的使用及点击外部不消失
查看>>
Linq To Entity多条件or查询处理
查看>>
AngularJs ng-options
查看>>
Jquery Md5加密-Jquery.md5.js
查看>>
JQuery.cookie.js操作客户端cookie
查看>>
Git官网下载windows版本慢的问题
查看>>
Js 取模运算、取商、取整方法
查看>>
NodeJs开发环境之Sublime Text3
查看>>
Sublime text 2/3 [Decode error - output not utf-8] 完美解决方法
查看>>
ffmpeg ffplay ffprobe资料整理
查看>>
Sublime Text 插件之Emmet
查看>>
SublimeText插件之CodeFormatter
查看>>
Node.Js 全局对象与全局属性(一)
查看>>
Node.Js Path模块-文件或文件夹路径字符串操作
查看>>
Node.Js fs模块文件夹操作
查看>>
Bootstrap 弹出框modal上层的输入框不能获得焦点问题
查看>>
EF Invalid column name 'Discriminator'
查看>>
Node.Js fs模块文件操作(一)
查看>>
Node.Js fs模块操作文件(二)
查看>>
Node.Js fs模块文件操作(三)
查看>>