Android to develop new tools for Android studio related knowledge

Source: Internet
Author: User

1 Download of Install as

As official website: http://developer.android.com/sdk/installing/studio.html

Domestic mirror URL ———— androiddevtools, address is http://www.androiddevtools.cn/

Installation path configuration for JDK: (http://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.htmlDetailed Installation Tutorials

System variables → find Path variable → edit

Enter%java_home%\bin;%java_home%\jre\bin at the end of the variable value;

(Note that the original path of the variable value at the end of there is no; number, if not, first enter; number and then enter the above code)

System variables → new java_home variable.

Variable value fill in the JDK installation directory (I am E:\Java\jdk1.7.0)

System variables → new CLASSPATH variable

Variable values are filled in.; %java_home%\lib;%java_home%\lib\tools.jar (Note that there is a point in the front)

Then you can install as.

Download settings for Gradle file

The first time you create a project, as will go to download gradle, the default download to C:\Users\Administrator\.gradle, download time is longer, you can open c:\user| The C:\Users\Adminstrator\.gradle\wrapper\dists\gradle-2.1-all\27drb4udbjf4k88eh2ffdc0n55 folder under Administrator\gradle. The folder for this bunch of organs is randomly generated and we see the Gradle-2.1-all.zip. part file. Know this version number, we can use thunder and other download software to the official website to download. Download the good Gradle-2.1-all.zip file directly into the folder, and then restart as, after the creation of the project to download some of the Jcenter dependency package, smaller, or very fast;

Note: Androidstudip project directory Structure http://www.kokojia.com/article/4906.html

Migration of eclipse projects to as

1) in Eclipse, select the project you want to export, right-click, choose the exported project,


2) then select the import generated Build.grade file in as and you can go to the Android program created by the Eclipse IDE.

Some settings for AS

Of course the setting is definitely open in a "small wrench" (different version location may be different)

1. Set the Appearance:

2. Old version of Chinese garbled problem

The reason is that because the fonts are incompatible, the "Override default font" in the appearance label changes the font.

3. Set the font size

Select the Colors&fonts tab under editor and click "Save as" to take the name

4. Settings for shortcut keys

Note: You set up eclipse, there are some keys are different changes when the conflict may occur, the specific changes http://my.oschina.net/janson2013/blog/386901

5. Auto-prompt for frame when mouse moves to code

As the machine is not configured as high as the use will be, so as the default cancellation of this function, you just in the Editor tab, General, in other select the "Show Quick doc on mouse move" option,

6 case-insensitive pop-up code hints (strongly recommended)

In the Editor tab, in the Editor tab, general,code completion option, select "None" in "Code sensitive completion"

Update SDK

Click the SDK Manager icon on the as toolbar, which is the robot icon that opens the SDK manager. After opening, see a series of connection refuse prompts, you need to select the Tooles.options option in the SDK Manager's menu bar,

In settting, enter the IP and port of the "Flip Wall" proxy (you can find the latest mirror address and port in http://www.androiddevtools.cn/ ), then tick "force https:\\...sources To is fetched using HTTP/... option


Note the build tool for the SDK is updated frequently and is recommended to stay up to date, which corresponds to the buildtoolsvesion attribute in the Build.gradle file under the module in Gradle.

Note: Here is a brief description of what to download


Problems with as importing as projects

The As card death occurs when we import the downloaded as into the AS

Reason: As the compiler tool Gradle is not mature, stable version, you are under the Gradle1.5, and your local does not have that version, as to go back to download this version,

Workaround: Create a normal project with the local current version of Gradle, ensure that it can be compiled, and then replace the two folders in the project with the "Grade" folder and the "Build.gradle" file in the local project.


Android to develop new tools for Android studio related knowledge

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.