Explore Android Studio and Some Problems and Solutions

Source: Internet
Author: User

I believe that after reading the 2013 Google I/o conference, you will surely know what Android Studio is. This is an artifact ~ So I was excited to download the early adopters.

Function:

Android Studio is based on IntelliJ idea.

IDEA, in addition to IntelliJ functions, Android Studio also provides:

① Gradle-based construction support;

② Specific Android reconstruction and Quick repair;

③ Prompt tools to better control and capture program performance, availability, version compatibility and other problems;

④ Support ProGuard and application signature functions;

⑤ The built-in layout editor allows you to drag and drop the UI component and preview the layout on multiple screen configurations.

: Http://developer.android.com/sdk/installing/studio.html#Installing

Android Studio [including local downloads in China]

More about Android Studio: http://www.bkjia.com/search.aspx? Where = nkey & keyword = 21639

Android Studio provides Windows, Mac OS X, and Linux versions. You can download them based on your system.

Installation:

Install it in a silly way. I will not explain it here. I will mainly look at some problems encountered after the installation.

Problems encountered during running:

Question 1:

After the installation, studio.exe has no response, and this is a tangle ~ Click studio. bat under the installation directory android-studio \ bin to report an error.

ERROR: cannot start Android Studio.

No JDK found. Please validate either ANDROID_STUDIO_JDK, JDK_HOME or JAVA_HOME points to valid JDK installation.

ECHO is disabled.

This is because of environment variable configuration issues. Here

Jdk environment variables need to be configured in three places:

①.

JAVA_HOME

Here I am

C: \ Program Files (x86) \ Java \ jdk1.6.0 _ 33 (Note: do not include semicolons (;))

②. CLASSPATH

.; % JAVA_HOME % \ lib \ tools. jar; % JAVA_HOME % \ lib \ dt. jar;

Pay attention to the preceding points.

③. Path

% JAVA_HOME % \ bin;

Question 2:

An error is returned when you run studio. bat again.

Unrecognized VM option '+ UseCodeCacheFlushing'

Cocould not create the Java virtual machine

Solution: Use a text tool to open studio.exe. vmoptions In the android-studio \ bindirectory and delete the-XX: + UseCodeCacheFlushing line.

The preceding operations basically solve the problem that android-studio cannot run. At this time, you can run studio.exe to run it perfectly.

The first to create a new project, will download some things gradle-1.6-bin.zip, probably 36mleft right, the file is not very large, but you will find that wait for a long time also not to download, the station will download gradle-1.6-bin.zip offline package, address: http://pan.baidu.com/share/link? Consumer id = 585704 & uk = 487907638

After the download, extract the package to any location and configure the path of the environment variable to the bin directory of gradle. After environment variables are configured, use gradle in cmd.

-V command to verify whether the operation is successful, as shown in the figure

Congratulations, you have succeeded ~ Now you can create a project.

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.