As for the benefits of Android Studio I don't have to say the following two is enough for you to switch to Android Studio:
1, Android Studio is officially designated by Google, the current official website has been removed from the ADT, you can be in the Android Web site to view, currently only Android studio to provide downloads.
2, Google also said ADT no longer maintenance.
When it comes to Android studio, the online postings about how to use Android Studio are flying, so I'm not going to compliment Android studio anymore.
This article focuses on Android Studio's approach to introducing the Android AOSP source code.
Currently, only the code after the Android Lollipop has been tested, and it is not clear whether the project was supported before 5.0.
Introduction to Android 5.0:lollipop
Android Lollipop is Google launched in 14, the detailed introduction of lollipop can be viewed lollipop official introduction, I will not say more. As a developer, we should not stay on the surface (that is, the lollipop of the gorgeous interface, and the novel design language material designs), we have to understand the principle.
The effect chart is as follows:
Without complicated configuration, a few lines of simple commands are as follows:
1. Generate IDE Tool files
Mmm development/tools/idegen/
The Idegen.jar file will be generated when the run is finished.
2, generate the Android studio configuration file
Mainly to generate ANDROID.IWS, ANDROID.IPR, ANDROID.IML, these three files are the key files of the Android Studio project, which is mainly to list the project by module, dependency, directory structure.
Sh./development/tools/idegen/idegen.sh
3. Import Project
Opening the Android studio,file->open-> project root android.ipr,android automatically imports all of the engineering code, and the lengthy indexing process takes about 30-120 minutes.
Procedure: The config prompt for the framework will pop up in index, click Config, and then confirm that it will continue to indexing for some time.
End: When indexing is finished, select Project view and see the clear code structure at the beginning of the article.
4. Advantages and Disadvantages
Advantages:
1. Made by Google
2. Good code reading environment
3. Excellent code editing features, tips and methods to jump
4. It is said that there is strong plug-in support
Disadvantages:
1, recommended standard 8G of Take-off memory
Summarize
This is the detailed steps for Android studio to view the Android 5.x source code, and hopefully this article will help new Android developers, and if you have questions, you can talk.