lopsocal.blogg.se

Setting up an android studio development environment
Setting up an android studio development environment












  1. #SETTING UP AN ANDROID STUDIO DEVELOPMENT ENVIRONMENT MAC OS X#
  2. #SETTING UP AN ANDROID STUDIO DEVELOPMENT ENVIRONMENT MAC OS#
  3. #SETTING UP AN ANDROID STUDIO DEVELOPMENT ENVIRONMENT INSTALL#
  4. #SETTING UP AN ANDROID STUDIO DEVELOPMENT ENVIRONMENT ARCHIVE#

bashrc file contained therein and add the following line at the end of the file (modifying the path to match the location of the JDK on your system): export PATH=/home/demo/java/jdk1.7.0_10/bin:$PATH For example, change directory to your home directory, edit the. bashrc file in your home directory (specifics may differ depending on the particular Linux distribution in use). This can typically be achieved by adding a command to the. For example, assuming that the JDK ultimately installed into /home/demo/java/jdk1.7.0_10 the following would need to be added to your $PATH environment variable: /home/demo/java/jdk1.7.0_10/bin Add the path to the bin directory of the JDK installation to your $PATH variable. Execute the following command (where is replaced by the name of the downloaded JDK file):ĥ. Download the appropriate tar.gz package from the Oracle web site into the directory.ģ. Create the directory into which the JDK is to be installed (for the purposes of this example we will assume /home/demo/java).Ģ.

#SETTING UP AN ANDROID STUDIO DEVELOPMENT ENVIRONMENT INSTALL#

To install using the compressed tar package (tar.gz) perform the following steps:ġ. Assuming, for example, that the downloaded JDK file was named jdk-7u10-linux-圆4.rpm, the commands to perform the installation would read as follows: su rpm JDK file from the Oracle web site and perform the installation using the rpm command in a terminal window.

setting up an android studio development environment

On Red Hat based Linux systems, download the.

#SETTING UP AN ANDROID STUDIO DEVELOPMENT ENVIRONMENT ARCHIVE#

Packages are provided by Oracle in RPM format (for installation on Red Hat Linux based systems such as Red Hat Enterprise Linux, Fedora and CentOS) and as a tar archive for other Linux distributions such as Ubuntu. Once the installation is complete, return to the Terminal window and run the following command, at which point the previously outlined Java version information should appear: java -versionįirstly, if the chosen development system is running the 64-bit version of Ubuntu then it is essential that the 32-bit library support package be installed: sudo apt-get install ia32-libsĪs with Windows based JDK installation, it is possible to install the JDK on Linux by downloading the appropriate package from the Oracle web site, the URL for which is as follows: The Java for OS X installer window will appear and take you through the steps involved in installing the JDK. Open the downloaded disk image (.dmg file) and double click on the JavaForOSX.pkg package file (Figure 2-1) contained within: Click on the Download button to download the Java package to your system.

setting up an android studio development environment

This should display the Java for OS X 2013-005 web page.

setting up an android studio development environment

#SETTING UP AN ANDROID STUDIO DEVELOPMENT ENVIRONMENT MAC OS#

To install Java on this release of Mac OS X, open a Safari browser window and navigate to the following URL:

#SETTING UP AN ANDROID STUDIO DEVELOPMENT ENVIRONMENT MAC OS X#

The exact steps that need to be taken to install Java vary from one release of Mac OS X to the next so check the Apple documentation for your particular Mac OS X version.Īt the time of writing the latest release of Mac OS X is 10.9 (Mavericks). In the event that Java is not installed, issuing the “java” command in the terminal window will result in the appearance of a message which reads as follows together with a dialog on the desktop providing the option to display the Oracle Java web page: No Java runtime present, requesting install

setting up an android studio development environment

Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode) To confirm the version that is installed, open a Terminal window and enter the following command: java -versionĪssuming that Java is currently installed, output similar to the following will appear in the terminal window: java version "1.6.0_65" The Java SE 6 environment or a more recent version should already be installed on the latest Mac OS X versions.














Setting up an android studio development environment