ArkTS projects in the stage model support API version 10 and later versions. The project directory is shown below.

Directory | Resource File Description |
|---|---|
base > element | JSON file that contains resources such as character strings, integers, colors, and styles. Each resource is defined in JSON format, including:
|
base > media | Multimedia files, such as graphics, videos, and audios. Supported file formats include .png, .gif, .mp3, and .mp4. |
rawfile | Raw resource files in any format. rawfile does not look for resources based on the device status. You need to specify the directory, including the file name, for reference. |
C++ projects in the stage model support API version 10 and later and can be developed using a combination of ArkTS and C++. The project directory is shown below.

Directory | Resource File Description |
|---|---|
base > element | JSON file that contains resources such as character strings, integers, colors, and styles. Each resource is defined in JSON format, including:
|
base > media | Multimedia files, such as graphics, videos, and audios. Supported file formats include .png, .gif, .mp3, and .mp4. |
rawfile | Raw resource files in any format. rawfile does not look for resources based on the device status. You need to specify the directory, including the file name, for reference. |
JS projects can only be built in the FA model. The following figure shows the project directory structure.

Directory | Resource File Description |
|---|---|
base > element | JSON file that contains resources such as character strings, integers, colors, and styles. Each resource is defined in JSON format, including:
|
base > media | Multimedia files, such as graphics, videos, and audios. Supported file formats include .png, .gif, .mp3, and .mp4. |
rawfile | Raw resource files in any format. rawfile does not look for resources based on the device status. You need to specify the directory, including the file name, for reference. |