--android--android Overview of micro-curriculum

Source: Internet
Author: User
Tags amd processors

It's basically about studio, and then the simulator, which has a general idea of the various parts of studio functionality.

Here are the teachers ' installation of JDK and studio articles

Android Development Environment Building

Learning Android encountered the first obstacle is not the problem of knowledge points, but the development of the environment, especially in the domestic environment, a little while the installation of the environment will take a long time, the following gives the building steps, will mainly introduce the construction of two platforms, Windows,mac, Linux is relatively rare in the development environment, with a slight stroke.

1: System Requirements
Windows
Microsoft? Windows? 7/8/10 (32-bit or 64-bit)
Lowest: 2GB RAM, recommended: 8GB RAM
Minimum: 2GB free disk space,
Recommended: 4GB free disk space (500MB for IDE + 1.5GB for Android SDK and emulator system image)
Minimum screen resolution: 800 x
For the accelerator simulator: 64-bit operating system and support for Intel? Vt-x, Intel? EM64T (Intel? 64) and non-executable (XD) bit features of Intel? Processor

Mac
Mac? OS X? 10.8.5 or later until 10.11.4 (El Capitan)
Lowest: 2GB RAM, recommended: 8GB RAM
Minimum: 2GB free disk space,
Recommended: 4GB free disk space (500MB for IDE + 1.5GB for Android SDK and emulator system image)
Minimum screen resolution: 800 x

Linux
GNOME or KDE Desktop
Already in Ubuntu? 12.04 (precise pangolin) was tested on a 64-bit distribution capable of running 32-bit applications.
64-bit distribution capable of running 32-bit apps
GNU C Library (glibc) version 2.11 or later
Lowest: 2GB RAM, recommended: 8GB RAM
Minimum: 2GB free disk space,
Recommended: 4GB free disk space (500MB for IDE + 1.5GB for Android SDK and emulator system image)
Minimum screen resolution: 800 x
For the Accelerator emulator: support for Intel? Vt-x, Intel? EM64T (Intel? 64) and non-executable (XD) bit features of Intel? processor, or support AMD virtualization? (amd-v?) of AMD Processors

2:JDK Installation
Android Development is developed in the Java language, need to have Java JDK, as long as 1.6+ more than the version, it is best to use a newer version, such as 1.8

Download Link: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download the JDK for the corresponding machine in the link to the appeal and install it after the download is complete.

You may need to configure environment variables after download is complete

Environment variables:
Windows: My Computer (properties)-Advanced Environment Settings--Click Environment variables
New system variable: Java_home value: The JDK directory you installed, (e.g. C:\Program files\java\jdk1.8.0_77)
Edit the PATH variable: At the end of the add;%java_home%\bin;%java_home%\jre\bin (note Do not delete previously existing, followed by a semicolon before the string)
Authentication method: cmd input java command

Mac/linux:
1. Enter CD ~ Enter current user
2,ls-al can see a. bash_profile file, which is where environment variables are set
3, if no input: Touch. Bash_profile (used to modify the file timestamp, or to create a new file that does not exist.) )
4, enter vim. Bash_profile input E (means enter edit mode), enter I to enter edit input
5, enter Export Java_home=/library/java/javavirtualmachines/jdk1.8.0_91.jdk/contents/home (this is my directory, You can check your javavirtualmachines under the library)
6, press the ESC key to exit the input mode: WQ Exit Edit mode
7,source. Bash_profile (make configuration Effective)
8,echo $JAVA _home If there is an input indicating that the setting takes effect

3:androidstudio Installation
A: You need to download the androidstudio,:https://developer.android.com/studio/index.html before installing, remember to download the corresponding machine installation package

Windows installation:
Start the. exe file that you downloaded.
Install Android Studio and all required SDK tools as instructed by the installation Wizard.

Mac Installation:
Launch the Android Studio DMG file.
Drag and drop Android studio into the "Applications" folder and start Android Studio.
Select whether you want to import the previous Android Studio settings, and then click OK.
The Android Studio Setup Wizard will then guide you through the rest of the setup, including downloading the Android SDK components needed for development.

Linux Installation:
Unzip your downloaded. zip file to the appropriate location in your app, such as/usr/local/(for user profiles) or/opt/(for shared users).
To start Android Studio, open a terminal, navigate to the android-studio/bin/directory, and execute studio.sh.
Tip: Add android-studio/bin/to your PATH environment variable so you can launch Android studio from any directory.
Select whether you want to import the previous Android Studio settings, and then click OK.
The Android Studio Setup Wizard will then guide you through the rest of the setup, including downloading the Android SDK components needed for development.
Note: If you are running a 64-bit version of Ubuntu, you will need to install some 32-bit libraries using the following command:
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
If you are running a 64-bit version of Fedora, the command used is:
sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686


4:gradle
You may also encounter a download problem during the installation process, which is the gradle of the corresponding version. Gradle may be extremely slow to download, resulting in a very long first installation, so you can download gradle manually.
Download Link: https://services.gradle.org/distributions
Locate the corresponding version of Gradle, manually download and add the downloaded Gradle file manually to the. gradle/wrapper/dists/xxx
Then restart the androidstudio on the OK.

--android--android Overview of micro-curriculum

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.