Android learning notes ①-Basic installation of android tools, Android

Source: Internet
Author: User

Android learning notes ①-Basic installation of android tools, Android

Android has been out for a long time, and there are a lot of online tutorials. If you are afraid of forgetting it later, you can learn the knowledge shared by the online experts and record it. If you can help others, that's better!

In view of the current IDE tools, IDEA has occupied half of java, and Android Studio has gradually become the preferred tool for Android development. When I learned it, I chose Android Studio, I want to learn more. Hahaha!

    The basic environment is described as follows:

System Environment: window7 x64

Install the jdk environment:

Java Runtime Environment (JRE) 6 or higher

Java Development Kit (JDK) 7 or higher

IDE Selection: IDE: android-studio-ide-145.3001415-windows

Android simulator: genymotion-2.8.0

SDK: android-sdk_r24.4.1-windows (download a lot, not very understand)

The above tools can be downloaded by Baidu or Baidu cloud disk.

Thanks for the Deep Open Source: the notes below http://www.open-open.com/lib/view/open1468118887690.html are obtained based on the deep open source article above (standing on the shoulders of giants :))

    Download:

The author downloaded the green version of the portal password: wwvt

   Installation:

1. First, you need to determine whether the jdk environment is installed. Check the method win + r, input cmd, and then enter java-version in the black box. If the method is similar, the author's version number is 1.8.0, so the last version number is different.

If the environment configuration is correct, proceed to the next step.

2. decompress the downloaded green version of Android Studio

3. Click exe to run the program based on the number of locations on your computer.

4. The request proxy prompt will pop up at the first startup:

Click "Setup Propxy" to set the Proxy:
Host name: mirrors.neusoft.edu.cn
Port number: 80

5. Click OK to go to the welcome page to show us how to develop applications for tablets, mobile phones, watches, TVs, cars, and glasses.

6. Click "Next" and select the "Custom" option in the options window.

7. You can select the popular "Darcula" topic for the UI. It is said that this topic can protect your eyes.

8. After the sdk is selected, the next step is to install the sdk.

A) download the SDK

Download: https://dl.google.com/android/android-sdk_r24.4.1-windows.zip
Deep Network Disk download: http://pan.baidu.com/s/1jItY6jW

B) decompress the zip package and run the SDK Manager.

Select the package to be installed:
Accept the license and start installation:

C) set the location of the Android SDK and select the location where you downloaded the storage sdk. At this time, the basic IDE tool is installed!

              Configuration:

You can press Ctrl + Alt + S or click "Configure" to bring up Settings of the menu item to open the setting window.

1. Topic configuration: it can be set to the currently popular Darcula topic and set through the UI Options under Appearance & Bahavior> Apperance.

2. Font configuration: the default Font size is too small. You can configure your Font size as needed and use Editor-> Color & Fonts> Font to set the Font size. The default scheme is read-only. You need to Save As... before modifying the font size:

3. display the number of lines of code: by default, Android Studio does not display the number of lines of code. In this way, it is inconvenient for us to locate some XX errors, in the configuration query window, enter the line num keyword to query the project to be configured, and then select the Appearance option. You can see the Show line numbers option, which can be checked.

4. simulator Selection: AVD Manager in Android Stuido can be used to create a simulator, which is relatively simple to use. Its disadvantage is that it has poor performance. Now Genymotion is widely used, the fastest Android simulator in history. Next we will install Genymontion. Genymontion can be used only after an account is available:

Prerequisites: You need to install Virtual Box. Click here to open the Virtual Box download page and click x86/amd64 to download:

After the download is complete, click and start to install Next. then install the Genymotion we need.

 

A) Registered User: Click here to enter the user name, email address, and password on the page and accept the agreement to register the user.

B) Click here to open the Download page and click the Download button to start downloading.

C. Install Genymotion after the download. Double-click: Start the installation, and click Next until the installation is complete. After the installation is complete, go to "File> Settings ...... > In the Plugins dialog box, select "Browse repositories ".

D) enter Genymotion in the search box of the Browse Repositories window. After the query result is displayed, click the install button to install the plug-in:

E) After Genymotion is installed, Android Studio will prompt you to restart. After restart, you can see the Genymontion icon on the toolbar.

F) If you click the Genymontion icon for the first time, the Genymontion setting will be displayed. In settings, click the... button to specify the location of the Genymontion application (default location: C: \ Program Files \ Genymobile \ Genymotion ).

G) after the path is set, click the Genymontion icon to open Genymontion Device Manager. Note: If the message "Genymontion: Initialize Engine: failed" is displayed, check whether the Virtual Box works properly.

I) in the creation wizard, you must first log on to Genymontion and click the Sing in button to log on.

J) after logging on to the system, you can see that there are different simulators in the available list. You can find the simulator you want to create through the version and device model.

K) Then wait until Genymontion downloads the simulator.

L) after the download is complete, the next thing will be very simple. During each use, you only need to start the simulator to ensure that the simulator status is On.

M) when running, Android Studio detects the Genymotion simulator and click OK to compile and install the application.

N) last running interface

 

The above is the basic installation of Android Studio and the installation of some required plug-ins. After the preparation is complete, will other tools get twice the result with half the effort!

 

 

   Thanks again for the Deep Open Source

Original article title: Android Studio2.0 tutorials-Installation
Address: http://www.open-open.com/lib/view/open1468118887690.html

 

Related Article

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.