Android Studio Usage Tips-Introduction and Environment configuration

Source: Internet
Author: User

    • About Android Studio

The new IDE Android studio, released at the Google IO Conference, believes that the apes are not unfamiliar, as the 2014 Google IO Conference, although still published in the official version of the wood, but according to my use in the last few weeks, the bug is very few, Does not affect normal use at all. and Android Studio is based on IntelliJ, which is better than Eclipse's experience, both in terms of speed of operation and programming, and the efficiency of development is improved.



    • Android Studio vs Eclipse ADT


Currently, the biggest drawback of Android studio is that the NDK is not supported, and if the NDK is used within the project, it is expected to be available after the official version.



    • About versions:

As of 2014/08/13, the latest version is Canary channel 0.8.6

(Add a description of the version here: The total is divided into 4 channel, namely: Canary,dev,beta,stable. Its update frequency gradually decreases, canary about 1 or 2 weeks will be updated once, beta is relatively stable release, and stable is the legendary official version, currently also wood. )

Url:

-Http://tools.android.com/download/studio (wall crack recommended to download the latest version, reason one: Green version, reason two: timely access to the latest version (recommended with Canary version))
-Http://developer.android.com/sdk/installing/studio.html (Of course you can also download from official website, is an installation file, unlike above, he contains an Android L Preview SDK, In fact, we can use their own native SDK)
-Https://github.com/inferjay/AndroidDevTools/(the apes that do not turn the wall can be downloaded from here, which contains a lot of development tools resources, update speed than the official slightly slower)



    • Start configuring your Environment

Nonsense not much to say, in fact very easy, the following steps need to be noted:

1. Export the build.gradle file from eclipse: Export->android->generate gradle build files, select the project you want to export.

(Note: If you are dependent on the library project, it will automatically help you identify and select, and export together.) If there is a warning that indicates that the directory existed before the Build.gradle file,

Hook up force overriding of existing file to overwrite)



2. Unzip the green version of the. zip file to run Studio.exe (32-bit) or Studio64.exe (64-bit) in the bin directory, first set the SDK and JDK path ,

On the Quick Start interface Configure->project Defaults->project Structure



3 . Then go back to the Quick start interface Select Import Project to select the Build.gradle file import in step 1. The first time the import will download the Gradle file, about 50M,

It's a long time, so be patient, and successfully import from Eclipse to Android studio.


4, about the directory structure , if the generation of Build.gradle files from Eclipse Import, will retain the previous directory structure, if you directly in the Android studio new project generated, The directory structure would be strange, the standard directory structure of studio (note: project in Android Studio is equivalent to workspace in Eclipse,

Module is the equivalent of project in Eclipse, a project, including several module)



5 , Other: If the compilation after import is not successful, according to the console prompt can easily find the cause of the first encounter a few not very remember,

The main is to modify the contents of the Build.gradle or settings.gradle files. If you have compile error problem do not know how to solve, welcome message ...



The Apes! What are you hesitating about? Hurry up and use it. Android Studio is a trend, and the official version will soon be popular after the release. It's no harm to experience a piece now, haha!!!


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.