1 Star 0 Fork 5K

seanOY / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
开发准备.md 1.67 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2020-09-25 09:48 . !134 Docs Update 0924

开发准备

准备开发环境

参考《DevEco Studio使用指南》搭建环境章节。

创建项目

当前的DevEco Studio提供基本的开发功能,界面预览、代码调测将在下个版本提供,敬请期待。

请根据如下步骤创建工程(暂不支持直接创建“smartVision”类型项目)。

  1. 运行DevEco Studio,点击File > Project,选择“Lite Wearable”下的“Empty Feature Ability”模板。

    图 1 选择工程模板

  2. 创建成功后,修改entry > src > main目录下的config.json文件。

    1. 将“deviceType”的取值修改为"smartVision"。

    2. 在abilities数组内新增“visible”属性,取值设置为“true”。

      "deviceConfig": {},
      "module": {
          "deviceType": [
              "smartVision" //将deviceType 改为"smartVision"
          ],
          "distro": {
              "deliveryWithInstall": true,
              "moduleName": "entry",
              "moduleType": "entry"  
           },
           "abilities": [    
              {"name": 
                  "default","icon": 
                  "$media:icon",
                  "label": "music",
                  "visible": true, //新增“visible”属性,值为“true”
                  "type": "page"    
              }  
          ],
1
https://gitee.com/seanoy/docs.git
git@gitee.com:seanoy/docs.git
seanoy
docs
docs
master

搜索帮助