当前位置:网站首页>如何使用IDE自动签名调试鸿蒙应用
如何使用IDE自动签名调试鸿蒙应用
2022-06-25 03:41:00 【华为开发者论坛】
介绍
鸿蒙应用在调试阶段,需要配置调试证书和调试的profile文件。有两种方式:
1、通过从AGC中申请调试证书和Profile文件后,再进行签名。
但是这种方式操作比较复杂,而且获取设备UDID会比较麻烦,建议在低版本IDE下使用。
2、通过IDE自动签名方式完成应用调试
这种方式需要在DevEco Studio V2.1 Release及更高版本中才支持,如果版本较低可以先升级至高版本体验。这种方式只要用USB先连接鸿蒙设备和IDE即可自动完成调试证书和调试的profile文件的生成和下载集成。
操作步骤
- 连接鸿蒙设备和IDE,连接成功在IDE会显示设备型号,如下:

2. 进入File > Project Structure > Project > Signing Configs界面,点击“Sign In”按钮登录AGC网站。

弹出授权后,输入华为账号,点击“允许”:

登录成功后IDE页面会现在配置选项:

3. 在AGC创建项目和应用,AGC基本操作,可以参见链接。
注意AGC应用的包名必须与IDE项目中config.json文件中的“bundleName”取值保持一致。如果包名重复,需要重新创建。
4. 项目和应用创建好后,返回DevEco Studio的自动签名界面,点击Try Again,即可自动进行签名。

自动生成签名所需的密钥(.p12)、数字证书(.cer)和Profile文件(.p7b)会存放到用户user目录下的.ohos\config目录下。

5. 点击OK进行保存即可进行鸿蒙应用调试。
边栏推荐
- EasyNVR使用Onvif探测设备失败,显示“无数据”是什么原因?
- We media do not know how to realize it? Sharing of 7 major realization methods
- The era of copilot free is over! The official version is 67 yuan / month, and the student party and the defenders of popular open source projects can prostitute for nothing
- Peking University has a new president! Gongqihuang, academician of the Chinese Academy of Sciences, took over and was admitted to the Physics Department of Peking University at the age of 15
- Huawei failed to appeal and was prohibited from selling 5g equipment in Sweden; Apple regained the first place in the world in terms of market value; DeNO completes round a financing of USD 21million
- X86 CPU, critical! The latest vulnerability has caused heated discussion. Hackers can remotely steal keys. Intel "all processors" are affected
- Is flush a regular platform? Is it safe for flush to open an account
- 支付宝被风控7天怎么办?付解决方案
- Tencent Open Source Project "Yinglong" est devenu un projet Apache de haut niveau: l'ancien Service à long terme Wechat payment, peut maintenir un million de milliards de niveaux de traitement de flux
- MySQL modifies and deletes tables in batches according to the table prefix
猜你喜欢

协作+安全+存储,云盒子助力深圳爱德泰重构数据中心

MySQL installation tutorial

发布功能完成02《ivx低代码签到系统制作》

Internet Explorer died, and netizens started to build a true tombstone

x86 CPU,危!最新漏洞引发热议,黑客可远程窃取密钥,英特尔“全部处理器”受影响...

Two common OEE monitoring methods for equipment utilization

Sleep more, you can lose weight. According to the latest research from the University of Chicago, sleeping more than 1 hour a day is equivalent to eating less than one fried chicken leg

TensorFlow,危!抛弃者正是谷歌自己

Tutoriel d'installation MySQL

MySQL根据表前缀批量修改、删除表
随机推荐
Winxp kernel driver debugging
Is it reliable for CITIC Securities to open a mobile account? Is it safe?
程序猿职业发展9项必备软技能
Void* pointer
Apple's legendary design team disbanded after jobs refused to obey cook
Internet Explorer died, and netizens started to build a true tombstone
北大换新校长!中国科学院院士龚旗煌接任,15岁考上北大物理系
MCN institutions are blooming everywhere: bloggers and authors should sign contracts carefully, and the industry is very deep
威马招股书拆解:电动竞争已结束,智能排位赛刚开始
Xidian AI ranked higher than Qingbei in terms of AI majors, and Nantah ranked the first in China in 2022 in terms of soft science majors
什么是SSL证书,拥有一个SSL证书有什么好处?
太极图形60行代码实现经典论文,0.7秒搞定泊松盘采样,比Numpy实现快100倍
Lu Qi invests in quantum computing for the first time
AI自己写代码让智能体进化!OpenAI的大模型有“人类思想”那味了
We media do not know how to realize it? Sharing of 7 major realization methods
Is it safe for tonghuashun securities to open an account
后台页制作01《ivx低代码签到系统制作》
股票开户用客户经理发的开户链接安全吗?知道的给说一下吧
The programmer reality show is coming again! Hulan, as the host, carried the lamp to fill the knowledge. The SSS boss had a bachelor's degree in pharmacy. Zhu Jun and Zhang Min from Tsinghua joined th
How does the administrator prohibit another person from kicking himself?