Tips for using Android Studio

Source: Internet
Author: User

Android Studio is a development environment from Google, based on IntelliJ idea. Similar to the Eclipse-like Android development Environment (ADT), Android Studio also provides integrated Android development tools for development and commissioning, and of course, the support of the Android SDK.

This article does not update regularly

Problems that may be encountered during the development process the first time the program, appears fetching Android SDK compoment information after the program stuck

cause : At this point in the connection to the Google server, and Google server in mainland China by the wall dropped

Solution :

    1. Enter the Android-studio\bin directory. Locate the Idea.properties file and open it with a text editor.
    2. Add a line to the end of the file: Disable.android.first.run=true, and then save exit.
    3. Restart Android Studio
How to import an Android project that was previously developed using eclipse

Solution :

    1. Upgrade ADT to the latest version
    2. Select the project you want to export, right-export-android-generate Gradle Build Files
    3. Two times next, then tick the items you want to export
    4. When you are sure, select Finish and a Build.gradle file will be generated under the project path when finished.
    5. Open Android Studio Select Import Project, select the item you just export and import
How to use it. So file

Solution :

    1. Update Gradle to the latest version
    2. Ensure that the. So file is in the Libs directory of the Project
    3. Add under the Android node of the corresponding module Build.gradle
sourceSets {        main {            jniLibs.srcDirs = [‘libs‘]        }    }
Coding related to the use of Eclipse shortcut keys, want to quickly modify shortcut keys

Solution :

Select Settings-Find keymap Option-menu Keymaps on left-select eclipse-Confirm

I can't find the code hint shortcut.

Solution :

Code hints feature in the Android Studio shortcut key name is Class name completion, different from eclipse

Casing detection When code hints are removed

Solution :

Select Settings-Find editor option-Code completion-case Sensitive completion-Select none-Confirm

Quick comment on a method

Solution :

Enter/** and then enter

Global Search Keywords

Solution :
Select Edit-find-find in Path

Tips for using Android Studio

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.