Java project directory structure
The Java project directory structure is shown in the figure below.
.gradle: Gradle configuration file, which is automatically generated by the system and generally does not need to be modified.
- entry: The default startup module (main module), a directory used by developers to write source code files and development resource files.
- entry>libs: used to store the dependent files of the entry module.
- entry>.gitgnore: Identifies files that need to be ignored for git version management.
- entry>build.gradle: The compilation configuration file of the entry module.
- entry>src>main>Java: used to store Java source code.
- entry>src>main>resources: used to store resource files.
- entry>src>main>config.json: HAP manifest file, please refer to config.json manifest file introduction for detailed description.
- entry>src>test: The directory for writing test files.
For more technical exchanges, please join the QQ group
Group name: harmonyos Hongmeng Technology Exchange
Group number: 856567895
Start from scratch to learn HarmonyOS Hongmeng 2.0 development
- Original HarmonyOS Hongmeng Getting Started Tutorial 01 Basic Environment and Development Tools (tutorial includes source code)
- Original HarmonyOS Hongmeng Development 02 Development Tools Installation
- Original HarmonyOS Hongmeng Getting Started Tutorial 03 Run the development tool to complete the basic configuration DevEco Studio (tutorial includes source code)
- Original HarmonyOS Hongmeng Development 04 Run the first hello world (tutorial with source code)
- Original HarmonyOS Hongmeng Development 05 Run the first page (tutorial with source code)
- Original HarmonyOS Hongmeng Development 06 Create page Feature Ability through code (tutorial includes source code)
- Original HarmonyOS Hongmeng Development 07 Programming to realize page jump (tutorial includes source code)