Version: 1.7
语言 : 中文
Build your application for OpenHarmony
Import objects from the exported Tuanjie library

Export an OpenHarmony project

If you need more control over the build pipeline, you can export a Tuanjie project as a hvigor project and import that into DevEco Studio. This is useful if you want more control over the build pipeline, want to see or modify the OpenHarmony App Module that Tuanjie generates for your application.

Exporting by default (Deprecated)

To export a Tuanjie project for DevEco Studio:

  1. Select File > Build Settings.
  2. From the list of platforms in the Platform pane, select OpenHarmony.
    Note: If OpenHarmony is greyed out, set up your project for OpenHarmony development.
  3. Enable Export Project. Select Default option in Export Project Type drop down list.
  4. Click Export.
  5. Select the destination folder and click Select Folder to start the export process.

After Tuanjie exports the hvigor project, you can import the hvigor project into DevEco Studio. For information on the file structure of the exported hvigor project, refer to Hvigor project structure.

Use as A Library (UAAL)

To use Tuanjie as a library is as simple as exporting a normal project:

  1. Enable Export Project.
  2. Select Use As A Library(Recommanded) option in Export Project Type drop down list.
  3. Click Export.
  4. Select the destination folder and click Select Folder to start the export process.
  5. The exported project is a minimal project that shows use Tuanjie as a library. Open the project with DevEco Studio and enjoy it.
  6. You can import object from Tuanjie library after export project. refer to Import objects from the exported Tuanjie library

Other resource

Build your application for OpenHarmony
Import objects from the exported Tuanjie library