Install Android Studio 1.0 in a candidate version in linux
Latest Android Studio Canary Build: 1.0 Release Candidate 1
Http://tools.android.com/download/studio/canary/latest
Https://dl.google.com/dl/android/studio/ide-zips/1.0.0-rc1/android-studio-ide-135.1598475-linux.zip
You can also find
Https://github.com/inferjay/AndroidDevTools
Http://www.androiddevtools.cn/
Unzip-x android-studio-ide-135.1598475-linux.zip (itself is 64-bit, unlike adt for 32 and 64 versions) 32-bit systems seem to need to change parameters
Cd android-studio/
Configure environment variables:
Start android studio and find the java in the following sequence:
STUDIO_JDK, JDK_HOME, and JAVA_HOME. You can configure any of them.
That is, you can use either of the following methods:
Export STUDIO_JDK =/opt/jdk1.7.0 _ 71
Export JDK_HOME =/opt/jdk1.7.0 _ 71
Export JAVA_HOME =/opt/jdk1.7.0 _ 71
If none of them are configured, the startup script automatically determines the java installation path (using which java)
My settings are:
Export JAVA_HOME =/opt/jdk1.7.0 _ 71. You only need to set this parameter. Select the following two lines.
Export PATH = $ JAVA_HOME/bin: $ PATH
Export CLASSPATH =.: $ JAVA_HOME/jre/lib/rt. jar: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Java download page entry:
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
Java 7 download page, u71/u72
Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Java 8 download page, u25
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download the old version of java 8 to 8u20
Http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html
Download the old version of java 7 to 7u67
Http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html
Download the old version of java 6 to 6u45
Http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html
Download the old version of java 5 to 5.0u22.
Http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html
Http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase14-419411.html
Http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase13-419413.html
Http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase12-419414.html
Http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase11-419415.html
Start:
Bin/studio. sh
The first startup will be installed first,
The installed configuration file is in :~ /. AndroidStudio/
During installation, the downloaded sdk is :~ /Android/Sdk/
Java version requirements:
From the latest android 5.0, jdk 1.7 must be installed for normal compilation.
Jdk 4.4 is required from Android 2.3.1 to Android 1.6 W.
Jdk 2.3 is required for versions 1.5 and earlier.
Https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels
Platform Version API Level VERSION_CODE Notes
### Use jdk 1.7 ###
Android 5.0 21 LOLLIPOP Platform Highlights
### Use jdk 1.6 ###
Android 4.4 W 20 KITKAT_WATCH KitKat for Wearables Only
Android 4.4 19 KITKAT Platform Highlights
Android 4.3 18 JELLY_BEAN_MR2 Platform Highlights
Android 4.2, 4.2.2 17 JELLY_BEAN_MR1 Platform Highlights
Android 4.1, 4.1.1 16 JELLY_BEAN Platform Highlights
Android 4.0.3, 4.0.4 15 ICE_CREAM_SANDWICH_MR1 Platform Highlights
Android 4.0, 4.0.1, 4.0.2 14 ICE_CREAM_SANDWICH
Android 3.2 13 HONEYCOMB_MR2
Android 3.1.x 12 HONEYCOMB_MR1 Platform Highlights
Android 3.0.x 11 HONEYCOMB Platform Highlights
Android 2.3.4
Android 2.3.3 10 GINGERBREAD_MR1 Platform Highlights
Android 2.3.2
Android 2.3.1
### Use jdk1.5 ###
Android 2.3 9 GINGERBREAD
Android 2.2.x 8 FROYO Platform Highlights
Android 2.1.x 7 ECLAIR_MR1 Platform Highlights
Android 2.0.1 6 ECLAIR_0_1
Android 2.0 5 ECLAIR
Android 1.6 4 DONUT Platform Highlights
Android 1.5 3 CUPCAKE Platform Highlights
Android 1.1 2 BASE_1_1
Android 1.0 1 BASE
Https://source.android.com/source/initializing.html
Installing the JDK
The master branch of Android in the Android Open Source Project (AOSP) requires Java 7. On Ubuntu, use OpenJDK.
Java 7: For the latest version of Android
$ Sudo apt-get update
$ Sudo apt-get install openjdk-7-jdk
Optionally, update the default Java version by running:
$ Sudo update-alternatives -- config java
$ Sudo update-alternatives -- config javac
If you encounter version errors for Java, set its path as described in the Wrong Java Version section.
To develop older versions of Android, download and install the corresponding version of the Java JDK:
Java 6: for Gingerbread through KitKat
Java 5: for Cupcake through Froyo
Note: The lunch command in the build step will ensure that the Sun JDK is used instead of any previously installed JDK.