Installation and encountering pits for Android Studio 1.1

Source: Internet
Author: User

Google's Android Studio out of 1.0 stable version also has a long time, has been like JetBrains company's IDE, different languages of the IDE operating habits are more unified.

And Android Studio is based on IntelliJ Idea's community version of the development, how to taste fresh.

Today installed under, was a few small pits stuck, the final solution, found similar blog too much record of the installation process, and did not meet the problem to make a unified answer, so the installation process to record their own blog memo, or can help some friends to reduce unnecessary trouble.

One:

Please attach the official address: http://developer.android.com/index.html

Official station versions of: http://developer.android.com/sdk/index.html

Official website visit needs Fanqiang Oh.

My operating system is Win8.1. Mac and Linux haven't been tested yet

By the time this article was released, the latest official version is 1.1.0, which is what I am using now. I can upload 1.1.0 to the network disk for download if necessary.

Not convenient Fanqiang students can visit the Chinese community: http://www.android-studio.org/

But the latest version is 1.0 .

The general installation process has been described in detail in the Community HTTP://ASK.ANDROID-STUDIO.ORG/?/ARTICLE/9

Ii. those pits encountered during installation

This article mainly tells you the installation process needs to pay attention to several places:

1. Installation of JDK:

Oracle Official: http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html

The most should download is JDK7, I began to install the JDK8, the installation of the androidstudio behind a variety of problems, only to find that only install JDK7, the Pit Daddy Tutorial said can install 7 or more version O (╯-╰) o

2. After installing the JDK7 correctly, you need to configure the environment variables , do not match the following: http://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html

3. Installation of Andorid Studio, it is recommended to install more than 800 m of the EXE installation file containing the SDK

During the installation process, it is best to modify the installation path of the SDK, otherwise installed by default in the current user directory, in order to update the SDK automatically when the program has read and write permissions, I installed to the other drive letter.

4. Pit appeared, open Android Studio, has been prompted:fetching Android SDK component information, and so on for a long time, began to download gradle related files, not successful, but also wall problems.

The most straightforward workaround : Open the Bin folder in the Android Studio installation directory and edit the idea.properties file

Append at end of file: Disable.android.first.run=true

program installed in the C-drive can not save the classmate, the file may be copied to other drive, edited and overwritten back to the original file, this needless to say ...

The next step is to open the Android Studio initial interface.

Other possible solutions:

A. Using VPNFQ

B. Set up the agent, Setting->gradle->gradle VM Options, this tried, no matter what, do not know why.

5. Unable to create new project, click New Item no response , because there is no SDK and JDK path configured, O (╯-╰) O, why not give a hint ...

WORKAROUND: Open the initial interface, configure Configure--Project Defaults, Project Structure, the SDK installation path you just set up, and the JDK path to install first

6. Last Pit:

Just create a new project, a series of simple settings, or more convenient, click the Run button, prompted to select the device.

Select the second, simulator, Tip None, click on the right button, create a virtual device, set up OK and click OK to run.

The following error is indicated:

Panic:could not find Nexus_5_edited_api_21.ini file in $ANDROID _avd_home nor $HOME/.ANDROID/AVD

I just configured the simulator to tell me I can't find the configuration file?

A search without fruit, all said to be configured under the environment variable, but what to configure it?

The thought that the configuration file is not found in android_avd_home, it should be configured under Android_avd_home environment variable.

Under the user folder to see the next C:\Users\XXX\.android, there is no AVD this folder, stating that the configuration file is not in the face.

Look back at the Configuration Emulator page, look for clues, find the answer:

As a result, I was surprised that the simulator file was in the F-drive ... Pit Daddy, why quietly put here, ask me ah, what place point is too fast, I ignored.

Well, it's OK to put it here, and the problem can be solved.

Solution: Configure System Variables

New ...

Variable name: android_avd_home

Variable Value: F:\.ANDROID\AVD

Simulator path specific what position oneself according to, oneself look down.

Then restart Android Studio

It's ready to work.

Original content, reproduced please specify the source:)

Installation and encountering pits for Android Studio 1.1

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.