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 :
- Enter the Android-studio\bin directory. Locate the Idea.properties file and open it with a text editor.
- Add a line to the end of the file: Disable.android.first.run=true, and then save exit.
- Restart Android Studio
How to import an Android project that was previously developed using eclipse
Solution :
- Upgrade ADT to the latest version
- Select the project you want to export, right-export-android-generate Gradle Build Files
- Two times next, then tick the items you want to export
- When you are sure, select Finish and a Build.gradle file will be generated under the project path when finished.
- Open Android Studio Select Import Project, select the item you just export and import
How to use it. So file
Solution :
- Update Gradle to the latest version
- Ensure that the. So file is in the Libs directory of the Project
- 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