Finally to go to Android studio, has not turned around, seems to be outdated,
Project structure: A window has only one project, project is called projects to represent a workspace
The structure of a project is quite different from eclipse:
First look at the app structure: The app is actually Java files and resource files
Switch directory structure
such as switching to the project interface
1. There is a concept of project and module in studio, which says that a window in studio can have only one project, project, which represents a workspace, but a project can contain multiple module For example, the Android library, Java Library and so on, which are referenced by your project, can be regarded as a module;
2, the above directory will be Java code and resource files (Pictures, layout files, etc.) all boil down to SRC, in the SRC directory has a main group, while dividing the Java and res two folders, Java folder is equivalent to the SRC folder under Eclipse, The RES directory structure is the same.
- Android Studio is a single-project development model
- Application in Android Studio is equivalent to the workspace concept in eclipse
- Module in Android Studio is equivalent to project concept in eclipse
After the new project, the product directory structure for as is as follows:
.idea://AS生成的工程配置文件,类似Eclipse的project.properties。 app://AS创建工程中的一个Module。 gradle://构建工具系统的jar和wrapper等,jar告诉了AS如何与系统安装的gradle构建联系。 External Libraries://不是一个文件夹,只是依赖lib文件,如SDK等。
After the new project, the module directory structure of As is as follows:
BuildBuild the directory, equivalent to the default Java project in Eclipse Bin directory, the mouse on the right-click Show in Exploer to open the folder, compile the generated apk is also in the directory of the Outs subdirectory, but in the project as the default does not show the Out directory, Even if there is a compilation result is not displayed, right-click Open through the folder directly can see. LibsA dependency package that contains packages such as Jar packages and JNI. Src:The source code, equivalent to the Eclipse project. MainHome folder Java:Java code, including engineering and new is the default generated test project source code. Res:Resource file, similar to eclipse. LayoutApp layout and interface element configuration, similar to eclipse. MenuApp menu configuration, similar to eclipse. ValuesSimilar to eclipse. Dimens.xml://define the configuration file for the CSS. Strings. Xml://the configuration file that defines the string. Styles. Xml://defines the configuration file for the style. ... ... : //arrays and other files. ... ... : //assets and other directories androidmanifest. Xml://app basic information (Android managed file) Ic_launcher-web.png://app icon build.gradle://module gradle build script
Android Studio Learning----1