It was in the Ubuntu environment in the lab class, and although it was written on the Windows system, I was ready to configure an Android studio environment under Ubuntu.
Through Baidu, I first see the simplest way, is to enter the following command in the terminal:
sudo apt-add-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio
But the result is:
Have failed.
Then I switched to a more complicated approach:
1 I first installed the SDK, the next is the Oracle SDK, I first extracted to/home/qchrodinger, and then enter the following command in Terminal:
Cd/usr/local into the/usr/local directory
sudo mkdir java new folder Java
sudo cp/home/qchrodinger/jdk1.8.0_131. Copy the SDK package.
At this point, the error indicates that omitting Directiory, is in that directory there is a directory, the solution is to add-R, that is
sudo cp-r/home/qchrodinger/jdk1.8.0_131.
That's all you can do.
Then configure the environment variables:
Vim ~/.BASHRC here to install VIM, according to the prompt.
Add the following three lines at the end of the file
Export java_home=/usr/local/java/jdk1.8.0_91
Export path= $JAVA _home/bin: $PATH
Export classpath=.: $JAVA _home/lib/dt,jar: $JAVA _home/lib/tools.jar
2 Next download Android Studio
3 then go to the Bin folder to execute the studio.sh.
Then you can run Android studio, which is still very slow. The original Android studio regardless of which system is so slow, sure enough to look at the computer.
Build the Android Studio development environment on Ubuntu17.04