I have to install Android Studio on Ubuntu and I have used this link to download Android Studio.
我需要在Ubuntu上安装Android Studio,我使用这个链接下载Android Studio。
Is there any easy way to install Studio on Ubuntu?
在Ubuntu上安装Studio有什么简单的方法吗?
16 个解决方案
#1
36
Download the Linux SDK from the Android website. Copy the folder to whereever you want to extract the contents. Open a terminal there, and then run:
从Android网站下载Linux SDK。将文件夹复制到您想要提取内容的地方。在那里打开一个终端,然后运行:
sudo apt-get install unzip
sudo tar xvzf android-studio-ide-135.1641136-linux.zip
cd android-studio-ide-135.1641136-linux
./studio.sh
JDK 1.7 is required for Studio 1.0 onwards:
Studio 1.0以后需要JDK 1.7:
- Download the ubuntu zip from the d.android.com and repeat the steps from above
- 从d.android.com下载ubuntu zip并重复上面的步骤
-
Download the jdk 1.7 by executing the following commands in terminal as mentioned webupd8:
下载jdk 1.7,在终端执行以下命令,如webupd8所示:
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer
-
Open Android Studio and install the SDK tools.
打开Android Studio并安装SDK工具。
Caveats:
警告:
- If your system has a 32 bit processor, use Platform Tools r23.0.1. Refer to this bug for details.
- 如果您的系统有32位处理器,请使用平台工具r23.0.1。详细信息请参考此错误。
Note: If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:
注意:如果您正在运行一个64位版本的Ubuntu,您需要安装一些32位的库,使用以下命令:
$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1
Source: - linux-32-bit-libraries
来源:linux-32-bit-libraries
#2
52
Below are the steps to install Android Studio in Ubuntu system:
以下是在Ubuntu系统中安装Android Studio的步骤:
1. Install JDK 6 or later
1。安装JDK 6或更高版本
First, install Oracle JDK 8 (although you could also choose OpenJDK but it has some UI/performance issues) using WebUpd8 PPA.
首先,使用WebUpd8 PPA安装Oracle JDK 8(尽管您也可以选择OpenJDK,但是它有一些UI/性能问题)。
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
To make sure, it’s installed successfully, open a terminal and type (you should get the version number of the jdk you’ve installed e.g javac 1.8.0_11)
要确保安装成功,请打开终端并输入(您应该获得已安装e的jdk的版本号。g javac 1.8.0_11)
javac -version
2. Download and install Android Studio
2。下载并安装Android Studio
Download the Android Studio package for Linux and extract it somewhere (e.g home directory). Then type :
下载Linux的Android Studio包并将其解压到某处(e)。克主目录)。然后输入:
cd android-studio/bin
./studio.sh
3. Install SDK Platforms
3所示。安装SDK平台
You need to install some SDK before you jump into building android apps. Click on Configure -> SDK Manage
r to open Android SDK Manager. Select the latest API (to test against target build, e.g API 19 (Android 4.4.2)) and some packages in Extras (Android Support Library and Android Support Repository). Then install the selected packages.
在开发android应用程序之前,你需要安装一些SDK。点击配置-> SDK管理器打开Android SDK管理器。选择最新的API(针对目标构建进行测试,e。gapi 19 (Android 4.4.2)和附加包(Android支持库和Android支持库)。然后安装所选的包。
#3
24
Run the following command on terminal.
在终端上运行以下命令。
sudo apt-add-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio
#4
7
Don't forget to run:
别忘了运行:
/opt/android-studio/bin/studio.sh
/ opt / android-studio / bin / studio.sh
when you are done installing.
完成安装之后。
#5
6
In order to install Android Studio on Ubuntu Studio 14.04 and derivatives, do the following:
为了在Ubuntu Studio 14.04和衍生产品上安装Android Studio,请执行以下操作:
Step 1: Open a terminal using the Dash or pressing Ctrl + Alt + T
keys.
步骤1:使用破折号或按Ctrl + Alt + T键打开终端。
Step 2: If you have not, add that repository with the following command:
步骤2:如果没有,请使用以下命令添加该存储库:
sudo add-apt-repository ppa:paolorotolo/android-studio
Step 3: Update the APT with the command:
步骤3:用命令更新APT:
sudo apt-get update
Step 4: Now install the program with the command:
步骤4:现在使用以下命令安装程序:
sudo apt-get install android-studio
Step 5: Once installed, run the program by typing in Dash:
步骤5:安装完成后,输入Dash运行程序:
studio
#6
6
Here's how I installed android studio on xubuntu.
这是我在xubuntu上安装android studio的方法。
1. Install JDK:
1。将JDK安装:
Go through following commands to install jdk
执行以下命令来安装jdk。
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java7-set-default
If you want to install other version of jdk than replace your version number with 7 in last two commands.
如果您想安装jdk的其他版本,请在最后两个命令中使用7替换版本号。
2. Download the latest android studio from official site: https://developer.android.com/studio/index.html
2。从官方网站下载最新的android studio: https://developer.android.com/studio/index.html
It is better to use latest version of android studio because I tried to install version 1.5.1 and it was not working. Then I installed version 2.1.1 and it run perfectly.
最好使用最新版本的android studio,因为我试图安装1.5.1版本,但它没有工作。然后我安装了版本2.1.1,它运行得非常完美。
-
Extract downloaded android studio file in whichever folder you want. Now go to extracted android studio-->bin directory and open terminal here. Now run following:
提取下载的android studio文件在你想要的文件夹。现在转到提取的android studio——>bin目录,在这里打开终端。现在运行:
./studio.sh
。/ studio.sh
And that's it. If you are facing any problem than comment below.
就是这样。如果你遇到任何问题,请在下面留言。
#8
3
The easiest method to install Android Studio (or any other developer tool) on Ubuntu is to use the officially recommended Ubuntu Make snap. No need to download Android Studio as zip, try to manually install it, add PPAs or fiddle with Java installation. Ubuntu Make'll automatically download the latest Android Studio, install it along with OpenJDK and all the necessary dependencies and create an app launcher entry in Dash.
在Ubuntu上安装Android Studio(或其他开发工具)最简单的方法就是使用官方推荐的Ubuntu Make snap。不需要下载Android Studio作为zip,尝试手动安装,添加PPAs或修改Java安装。Ubuntu Make将自动下载最新的Android Studio,并将其与OpenJDK以及所有必需的依赖项一起安装,并在Dash中创建一个应用程序启动条目。
Step 1: Install Ubuntu Make
Run this command:
运行这个命令:
sudo snap install --classic ubuntu-make
Step 2: Install Android Studio
Run this command:
运行这个命令:
ubuntu-make.umake android
Once you accept the license and press enter to confirm installation path, Ubuntu Make'll download and install Android Studio.
一旦你接受了许可并按下enter确认安装路径,Ubuntu就会下载并安装Android Studio。
Step 3: Install Android SDK
Open the newly installed Android Studio from dash:
从dash打开新安装的Android Studio:
Don't need to import anything if this is the first time you're installing it:
如果这是您第一次安装,则不需要导入任何内容:
The Setup Wizard'll guide you through installation:
安装向导将指导您完成安装:
Select Standard install to get the latest SDK and Custom in-case you wanna change the SDK version or it's install location. From here on, it's pretty straightforward, just click next-next and you'll have the SDK downloaded and installed.
选择Standard install来获取最新的SDK和自定义,如果您想更改SDK版本或者它的安装位置。从这里开始,非常简单,只需单击next-next,就可以下载并安装SDK。
Step 4: Setting PATHs (Optional)
This step might be useful if you want Android SDK's developer tool commands like adb, fastboot, aapt, etc available in Terminal. Might be needed by 3rd party dev platforms like React Native, Ionic, Cordova, etc and other tools too. For setting PATHs, edit your ~/.profile
file:
如果您希望Android SDK的开发工具像adb、fastboot、aapt等在终端中使用,那么这个步骤可能非常有用。第三方开发平台可能也需要诸如React Native、Ionic、Cordova等工具。要设置路径,请编辑您的~/。概要文件:
gedit ~/.profile
and then add the following lines to it:
然后加上以下几行:
# Android SDK Tools PATH
export ANDROID_HOME=${HOME}/Android/Sdk
export PATH="${ANDROID_HOME}/tools:${PATH}"
export PATH="${ANDROID_HOME}/emulator:${PATH}"
export PATH="${ANDROID_HOME}/platform-tools:${PATH}"
If you changed SDK location at the end of Step 3, don't forget to change the line export ANDROID_HOME=${HOME}/Android/Sdk
accordingly.
如果您在步骤3的末尾更改了SDK位置,不要忘记相应地更改行export ANDROID_HOME=${HOME}/Android/ SDK。
Tested on Ubuntu 16.04LTS and above. Would work on 14.04LTS too if you install support for snap packages first. Thanks to Didier "didrocks" Roche for snapping Ubuntu Make. ????
在Ubuntu 16.04LTS及以上测试。如果您首先安装了对snap包的支持,那么也可以使用14.04LTS。感谢迪迪埃·罗奇(Didier "didrocks" Roche)拍摄Ubuntu Make。????
Note: This question is similar to the AskUbuntu question "How to install Android Studio on Ubuntu?" and my answer equally applies. I'm reproducing my answer here to ensure a full complete answer exists rather than just a link.
注意:这个问题类似于AskUbuntu问题“如何在Ubuntu上安装Android Studio”,我的回答同样适用。我在这里复制我的答案,以确保完整的答案存在,而不仅仅是一个链接。
#9
2
Android Studio PPA is maintained by Paolo Rotolo. We just need to add PPA to our system and install it using the following commands:
Android Studio PPA由Paolo Rotolo维护。我们只需要将PPA添加到我们的系统中,然后使用以下命令来安装它:
$ sudo add-apt-repository ppa:paolorotolo/android-studio
$ sudo apt-get update
$ sudo apt-get install android-studio
For more, see allubuntu.com
更多信息,请参见allubuntu.com
#10
2
To install android studio on ubuntu here is the simplest way possible:
在ubuntu上安装android studio是最简单的方法:
First of all, you have to install Ubuntu Make before installing Android Studio. Type following commands in the same order one by one on terminal:
首先,你必须在安装Android Studio之前安装Ubuntu Make。在终端上按相同的顺序逐一输入以下命令:
1) sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
1)sudo add-apt-repository ppa:ubuntu桌面/ ubuntu-make
2) sudo apt-get update
2)sudo apt-get更新
3) sudo apt-get install ubuntu-make
3)sudo apt-get安装ubuntu-make。
Now since you are done with Ubuntu make, use below command to install Android Studio:
既然你已经完成了Ubuntu make,使用下面的命令来安装Android Studio:
4) umake android
4)umake安卓
While installation it will give you a couple of option which you can handle. So, Installation is done. You can open it and run an App of your choice. Isn’t it very easy? Let me know if you go through any problem, I can help.
在安装时,它将给您提供两个您可以处理的选项。因此,安装完成。你可以打开它,运行你选择的应用程序。是不是很简单?如果你遇到任何问题,请告诉我,我可以帮忙。
Source Install Android Studio
源安装Android工作室
#11
2
add a repository,
添加一个库,
sudo apt-add-repository ppa:maarten-fonville/android-studio
sudo apt-get update
Then install using the command below:
然后使用以下命令进行安装:
sudo apt-get install android-studio
#12
1
Hi If you want to install android studio on ubuntu you shoudl first have Java JDk on ubuntu. Installing Java SDK
嗨,如果你想在ubuntu上安装android studio,你应该先在ubuntu上安装Java JDk。安装Java SDK
First you have to install Oracle on Java 7 (JDK and JRE)
首先必须在Java 7 (JDK和JRE)上安装Oracle
Download Java SDK 32 or 64 bit depending upon your version.
根据您的版本下载Java SDK 32或64位。
java sdk on ubuntu
java sdk在ubuntu上
Then extract the file in the /tmp folder.Al dialogue box will pop up, click on replace all.An error will also pop out click close.
然后提取/tmp文件夹中的文件。对话框将弹出,单击“替换全部”。一个错误也会弹出点击关闭。
Go to tmp folder,a new folder name jdk and version must be created.right click on the folder and then click on rename and copy the name of the folder.
进入tmp文件夹,必须创建一个新的文件夹名称jdk和版本。右键单击文件夹,然后单击“重命名”并复制文件夹的名称。
Also read How to Install Genymotion on Ubuntu First write this command and click enter.
还可以阅读如何在Ubuntu上安装Genymotion。
install android sdk on ubuntu linux
在ubuntu linux上安装android sdk
sudo su
Then write this command and press enter
然后编写此命令并按enter键
if [ ! -d '/usr/lib/jvm' ]; then mkdir /usr/lib/jvm; fi
Paste this command
粘贴该命令
mv /tmp/jdk1.8* /usr/lib/jvm/
jdk1.8* = replace it with the name of the extracted folder in this example =jdk1.8.0_05
jdk1.8* =替换为本例中提取的文件夹的名称=jdk1.8.0_05
and press enter
并按回车键
sdk install linux
java,javac,jar,javaws = we have to replace these
java、javac、jar、javaws =我们必须替换它们
update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8*/bin/java 1065
update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8*/bin/javac 1065
update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.8*/bin/jar 1065
update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.8*/bin/javaws 1065
update-alternatives --config java
java -version
This was taken from http://emulatorforpc.com/best-android-emulator-ubuntu/
这是从http://emulatorforpc.com/best android-emulator-ubuntu/获得的
#13
0
I was just investigating this issue now, you should use Ubuntu Make
我正在调查这个问题,你应该用Ubuntu Make
Which "is a command line tool which allows you to download the latest version of popular developer tools on your installation"
“是一个命令行工具,允许您在安装时下载最新版本的流行开发工具”
#14
0
You could always follow the official guide on how to install Android Studio on Linux. There's even a video you can watch!
关于如何在Linux上安装Android Studio,您可以遵循官方指南。甚至还有一个视频可以看!
https://developer.android.com/studio/install.html
https://developer.android.com/studio/install.html
Remember to select Linux in the drop-down box.
记住在下拉框中选择Linux。
To summarise the steps: download Android Studio and extract it and execute studio.sh
to run it. If you're running 64-bit Ubuntu, you will need to run:
总结步骤:下载Android Studio并提取它并执行Studio。sh。如果你正在运行64位Ubuntu,你需要运行:
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
#15
0
Follow the steps via terminal:
通过终端执行步骤:
- sudo add-apt-repository ppa:webupd8team/java
- sudo add-apt-repository ppa:webupd8team / java
- sudo apt-get update
- sudo apt-get更新
- sudo apt-get install oracle-java8-installer
- sudo apt-get安装oracle-java8-installer
after then:
之后:
- sudo apt-get install oracle-java8-set-default
- sudo apt-get安装oracle-java8-set-default
then;
然后;
- Download Android Studio from "https://developer.android.com/studio/index.html", use All Android Studio Packages.
- 从“https://developer.android.com/studio/index.html”下载Android Studio,使用所有Android Studio包。
- Unzip the file.
- 解压文件。
At last type via terminal :
最后通过终端输入:
- cd android-studio
- cd android-studio
- cd bin
- cd本
- ./studio.sh
- 。/ studio.sh
Then follow the commands and you're ready to go.
然后按照命令执行,就可以开始了。
#16
0
I was having having an issue with umake being an outdated version. What fixed it was:
我有个问题,umake是一个过时的版本。固定是什么:
sudo apt remove --purge ubuntu-make
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt update
sudo apt install ubuntu-make
umake android
#1
36
Download the Linux SDK from the Android website. Copy the folder to whereever you want to extract the contents. Open a terminal there, and then run:
从Android网站下载Linux SDK。将文件夹复制到您想要提取内容的地方。在那里打开一个终端,然后运行:
sudo apt-get install unzip
sudo tar xvzf android-studio-ide-135.1641136-linux.zip
cd android-studio-ide-135.1641136-linux
./studio.sh
JDK 1.7 is required for Studio 1.0 onwards:
Studio 1.0以后需要JDK 1.7:
- Download the ubuntu zip from the d.android.com and repeat the steps from above
- 从d.android.com下载ubuntu zip并重复上面的步骤
-
Download the jdk 1.7 by executing the following commands in terminal as mentioned webupd8:
下载jdk 1.7,在终端执行以下命令,如webupd8所示:
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer
-
Open Android Studio and install the SDK tools.
打开Android Studio并安装SDK工具。
Caveats:
警告:
- If your system has a 32 bit processor, use Platform Tools r23.0.1. Refer to this bug for details.
- 如果您的系统有32位处理器,请使用平台工具r23.0.1。详细信息请参考此错误。
Note: If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:
注意:如果您正在运行一个64位版本的Ubuntu,您需要安装一些32位的库,使用以下命令:
$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1
Source: - linux-32-bit-libraries
来源:linux-32-bit-libraries
#2
52
Below are the steps to install Android Studio in Ubuntu system:
以下是在Ubuntu系统中安装Android Studio的步骤:
1. Install JDK 6 or later
1。安装JDK 6或更高版本
First, install Oracle JDK 8 (although you could also choose OpenJDK but it has some UI/performance issues) using WebUpd8 PPA.
首先,使用WebUpd8 PPA安装Oracle JDK 8(尽管您也可以选择OpenJDK,但是它有一些UI/性能问题)。
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
To make sure, it’s installed successfully, open a terminal and type (you should get the version number of the jdk you’ve installed e.g javac 1.8.0_11)
要确保安装成功,请打开终端并输入(您应该获得已安装e的jdk的版本号。g javac 1.8.0_11)
javac -version
2. Download and install Android Studio
2。下载并安装Android Studio
Download the Android Studio package for Linux and extract it somewhere (e.g home directory). Then type :
下载Linux的Android Studio包并将其解压到某处(e)。克主目录)。然后输入:
cd android-studio/bin
./studio.sh
3. Install SDK Platforms
3所示。安装SDK平台
You need to install some SDK before you jump into building android apps. Click on Configure -> SDK Manage
r to open Android SDK Manager. Select the latest API (to test against target build, e.g API 19 (Android 4.4.2)) and some packages in Extras (Android Support Library and Android Support Repository). Then install the selected packages.
在开发android应用程序之前,你需要安装一些SDK。点击配置-> SDK管理器打开Android SDK管理器。选择最新的API(针对目标构建进行测试,e。gapi 19 (Android 4.4.2)和附加包(Android支持库和Android支持库)。然后安装所选的包。
#3
24
Run the following command on terminal.
在终端上运行以下命令。
sudo apt-add-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio
#4
7
Don't forget to run:
别忘了运行:
/opt/android-studio/bin/studio.sh
/ opt / android-studio / bin / studio.sh
when you are done installing.
完成安装之后。
#5
6
In order to install Android Studio on Ubuntu Studio 14.04 and derivatives, do the following:
为了在Ubuntu Studio 14.04和衍生产品上安装Android Studio,请执行以下操作:
Step 1: Open a terminal using the Dash or pressing Ctrl + Alt + T
keys.
步骤1:使用破折号或按Ctrl + Alt + T键打开终端。
Step 2: If you have not, add that repository with the following command:
步骤2:如果没有,请使用以下命令添加该存储库:
sudo add-apt-repository ppa:paolorotolo/android-studio
Step 3: Update the APT with the command:
步骤3:用命令更新APT:
sudo apt-get update
Step 4: Now install the program with the command:
步骤4:现在使用以下命令安装程序:
sudo apt-get install android-studio
Step 5: Once installed, run the program by typing in Dash:
步骤5:安装完成后,输入Dash运行程序:
studio
#6
6
Here's how I installed android studio on xubuntu.
这是我在xubuntu上安装android studio的方法。
1. Install JDK:
1。将JDK安装:
Go through following commands to install jdk
执行以下命令来安装jdk。
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java7-set-default
If you want to install other version of jdk than replace your version number with 7 in last two commands.
如果您想安装jdk的其他版本,请在最后两个命令中使用7替换版本号。
2. Download the latest android studio from official site: https://developer.android.com/studio/index.html
2。从官方网站下载最新的android studio: https://developer.android.com/studio/index.html
It is better to use latest version of android studio because I tried to install version 1.5.1 and it was not working. Then I installed version 2.1.1 and it run perfectly.
最好使用最新版本的android studio,因为我试图安装1.5.1版本,但它没有工作。然后我安装了版本2.1.1,它运行得非常完美。
-
Extract downloaded android studio file in whichever folder you want. Now go to extracted android studio-->bin directory and open terminal here. Now run following:
提取下载的android studio文件在你想要的文件夹。现在转到提取的android studio——>bin目录,在这里打开终端。现在运行:
./studio.sh
。/ studio.sh
And that's it. If you are facing any problem than comment below.
就是这样。如果你遇到任何问题,请在下面留言。
#7
#8
3
The easiest method to install Android Studio (or any other developer tool) on Ubuntu is to use the officially recommended Ubuntu Make snap. No need to download Android Studio as zip, try to manually install it, add PPAs or fiddle with Java installation. Ubuntu Make'll automatically download the latest Android Studio, install it along with OpenJDK and all the necessary dependencies and create an app launcher entry in Dash.
在Ubuntu上安装Android Studio(或其他开发工具)最简单的方法就是使用官方推荐的Ubuntu Make snap。不需要下载Android Studio作为zip,尝试手动安装,添加PPAs或修改Java安装。Ubuntu Make将自动下载最新的Android Studio,并将其与OpenJDK以及所有必需的依赖项一起安装,并在Dash中创建一个应用程序启动条目。
Step 1: Install Ubuntu Make
Run this command:
运行这个命令:
sudo snap install --classic ubuntu-make
Step 2: Install Android Studio
Run this command:
运行这个命令:
ubuntu-make.umake android
Once you accept the license and press enter to confirm installation path, Ubuntu Make'll download and install Android Studio.
一旦你接受了许可并按下enter确认安装路径,Ubuntu就会下载并安装Android Studio。
Step 3: Install Android SDK
Open the newly installed Android Studio from dash:
从dash打开新安装的Android Studio:
Don't need to import anything if this is the first time you're installing it:
如果这是您第一次安装,则不需要导入任何内容:
The Setup Wizard'll guide you through installation:
安装向导将指导您完成安装:
Select Standard install to get the latest SDK and Custom in-case you wanna change the SDK version or it's install location. From here on, it's pretty straightforward, just click next-next and you'll have the SDK downloaded and installed.
选择Standard install来获取最新的SDK和自定义,如果您想更改SDK版本或者它的安装位置。从这里开始,非常简单,只需单击next-next,就可以下载并安装SDK。
Step 4: Setting PATHs (Optional)
This step might be useful if you want Android SDK's developer tool commands like adb, fastboot, aapt, etc available in Terminal. Might be needed by 3rd party dev platforms like React Native, Ionic, Cordova, etc and other tools too. For setting PATHs, edit your ~/.profile
file:
如果您希望Android SDK的开发工具像adb、fastboot、aapt等在终端中使用,那么这个步骤可能非常有用。第三方开发平台可能也需要诸如React Native、Ionic、Cordova等工具。要设置路径,请编辑您的~/。概要文件:
gedit ~/.profile
and then add the following lines to it:
然后加上以下几行:
# Android SDK Tools PATH
export ANDROID_HOME=${HOME}/Android/Sdk
export PATH="${ANDROID_HOME}/tools:${PATH}"
export PATH="${ANDROID_HOME}/emulator:${PATH}"
export PATH="${ANDROID_HOME}/platform-tools:${PATH}"
If you changed SDK location at the end of Step 3, don't forget to change the line export ANDROID_HOME=${HOME}/Android/Sdk
accordingly.
如果您在步骤3的末尾更改了SDK位置,不要忘记相应地更改行export ANDROID_HOME=${HOME}/Android/ SDK。
Tested on Ubuntu 16.04LTS and above. Would work on 14.04LTS too if you install support for snap packages first. Thanks to Didier "didrocks" Roche for snapping Ubuntu Make. ????
在Ubuntu 16.04LTS及以上测试。如果您首先安装了对snap包的支持,那么也可以使用14.04LTS。感谢迪迪埃·罗奇(Didier "didrocks" Roche)拍摄Ubuntu Make。????
Note: This question is similar to the AskUbuntu question "How to install Android Studio on Ubuntu?" and my answer equally applies. I'm reproducing my answer here to ensure a full complete answer exists rather than just a link.
注意:这个问题类似于AskUbuntu问题“如何在Ubuntu上安装Android Studio”,我的回答同样适用。我在这里复制我的答案,以确保完整的答案存在,而不仅仅是一个链接。
#9
2
Android Studio PPA is maintained by Paolo Rotolo. We just need to add PPA to our system and install it using the following commands:
Android Studio PPA由Paolo Rotolo维护。我们只需要将PPA添加到我们的系统中,然后使用以下命令来安装它:
$ sudo add-apt-repository ppa:paolorotolo/android-studio
$ sudo apt-get update
$ sudo apt-get install android-studio
For more, see allubuntu.com
更多信息,请参见allubuntu.com
#10
2
To install android studio on ubuntu here is the simplest way possible:
在ubuntu上安装android studio是最简单的方法:
First of all, you have to install Ubuntu Make before installing Android Studio. Type following commands in the same order one by one on terminal:
首先,你必须在安装Android Studio之前安装Ubuntu Make。在终端上按相同的顺序逐一输入以下命令:
1) sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
1)sudo add-apt-repository ppa:ubuntu桌面/ ubuntu-make
2) sudo apt-get update
2)sudo apt-get更新
3) sudo apt-get install ubuntu-make
3)sudo apt-get安装ubuntu-make。
Now since you are done with Ubuntu make, use below command to install Android Studio:
既然你已经完成了Ubuntu make,使用下面的命令来安装Android Studio:
4) umake android
4)umake安卓
While installation it will give you a couple of option which you can handle. So, Installation is done. You can open it and run an App of your choice. Isn’t it very easy? Let me know if you go through any problem, I can help.
在安装时,它将给您提供两个您可以处理的选项。因此,安装完成。你可以打开它,运行你选择的应用程序。是不是很简单?如果你遇到任何问题,请告诉我,我可以帮忙。
Source Install Android Studio
源安装Android工作室
#11
2
add a repository,
添加一个库,
sudo apt-add-repository ppa:maarten-fonville/android-studio
sudo apt-get update
Then install using the command below:
然后使用以下命令进行安装:
sudo apt-get install android-studio
#12
1
Hi If you want to install android studio on ubuntu you shoudl first have Java JDk on ubuntu. Installing Java SDK
嗨,如果你想在ubuntu上安装android studio,你应该先在ubuntu上安装Java JDk。安装Java SDK
First you have to install Oracle on Java 7 (JDK and JRE)
首先必须在Java 7 (JDK和JRE)上安装Oracle
Download Java SDK 32 or 64 bit depending upon your version.
根据您的版本下载Java SDK 32或64位。
java sdk on ubuntu
java sdk在ubuntu上
Then extract the file in the /tmp folder.Al dialogue box will pop up, click on replace all.An error will also pop out click close.
然后提取/tmp文件夹中的文件。对话框将弹出,单击“替换全部”。一个错误也会弹出点击关闭。
Go to tmp folder,a new folder name jdk and version must be created.right click on the folder and then click on rename and copy the name of the folder.
进入tmp文件夹,必须创建一个新的文件夹名称jdk和版本。右键单击文件夹,然后单击“重命名”并复制文件夹的名称。
Also read How to Install Genymotion on Ubuntu First write this command and click enter.
还可以阅读如何在Ubuntu上安装Genymotion。
install android sdk on ubuntu linux
在ubuntu linux上安装android sdk
sudo su
Then write this command and press enter
然后编写此命令并按enter键
if [ ! -d '/usr/lib/jvm' ]; then mkdir /usr/lib/jvm; fi
Paste this command
粘贴该命令
mv /tmp/jdk1.8* /usr/lib/jvm/
jdk1.8* = replace it with the name of the extracted folder in this example =jdk1.8.0_05
jdk1.8* =替换为本例中提取的文件夹的名称=jdk1.8.0_05
and press enter
并按回车键
sdk install linux
java,javac,jar,javaws = we have to replace these
java、javac、jar、javaws =我们必须替换它们
update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8*/bin/java 1065
update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8*/bin/javac 1065
update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.8*/bin/jar 1065
update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.8*/bin/javaws 1065
update-alternatives --config java
java -version
This was taken from http://emulatorforpc.com/best-android-emulator-ubuntu/
这是从http://emulatorforpc.com/best android-emulator-ubuntu/获得的
#13
0
I was just investigating this issue now, you should use Ubuntu Make
我正在调查这个问题,你应该用Ubuntu Make
Which "is a command line tool which allows you to download the latest version of popular developer tools on your installation"
“是一个命令行工具,允许您在安装时下载最新版本的流行开发工具”
#14
0
You could always follow the official guide on how to install Android Studio on Linux. There's even a video you can watch!
关于如何在Linux上安装Android Studio,您可以遵循官方指南。甚至还有一个视频可以看!
https://developer.android.com/studio/install.html
https://developer.android.com/studio/install.html
Remember to select Linux in the drop-down box.
记住在下拉框中选择Linux。
To summarise the steps: download Android Studio and extract it and execute studio.sh
to run it. If you're running 64-bit Ubuntu, you will need to run:
总结步骤:下载Android Studio并提取它并执行Studio。sh。如果你正在运行64位Ubuntu,你需要运行:
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
#15
0
Follow the steps via terminal:
通过终端执行步骤:
- sudo add-apt-repository ppa:webupd8team/java
- sudo add-apt-repository ppa:webupd8team / java
- sudo apt-get update
- sudo apt-get更新
- sudo apt-get install oracle-java8-installer
- sudo apt-get安装oracle-java8-installer
after then:
之后:
- sudo apt-get install oracle-java8-set-default
- sudo apt-get安装oracle-java8-set-default
then;
然后;
- Download Android Studio from "https://developer.android.com/studio/index.html", use All Android Studio Packages.
- 从“https://developer.android.com/studio/index.html”下载Android Studio,使用所有Android Studio包。
- Unzip the file.
- 解压文件。
At last type via terminal :
最后通过终端输入:
- cd android-studio
- cd android-studio
- cd bin
- cd本
- ./studio.sh
- 。/ studio.sh
Then follow the commands and you're ready to go.
然后按照命令执行,就可以开始了。
#16
0
I was having having an issue with umake being an outdated version. What fixed it was:
我有个问题,umake是一个过时的版本。固定是什么:
sudo apt remove --purge ubuntu-make
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt update
sudo apt install ubuntu-make
umake android