当前位置:网站首页>如何使用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进行保存即可进行鸿蒙应用调试。
边栏推荐
- Musk was sued for $258billion in MLM claims. TSMC announced the 2nm process. The Chinese Academy of Sciences found that the lunar soil contained water in the form of hydroxyl. Today, more big news is
- Svn deployment
- 指南针在上面开户安全吗?靠谱吗?
- 太极图形60行代码实现经典论文,0.7秒搞定泊松盘采样,比Numpy实现快100倍
- Program. Launch (xxx) open file
- Seata四大模式之TCC模式详解及代码实现
- Void* pointer
- 股票开户,在手机上开户安全吗?
- 一文搞懂php中的(DI)依赖注入
- Collaboration + Security + storage, cloud box helps Shenzhen edetai restructure its data center
猜你喜欢

Sun Wu plays Warcraft? There is a picture and a truth

你真的需要自动化测试吗?

XML建模

后台页制作01《ivx低代码签到系统制作》

香蕉为什么能做随机数生成器?因为,它是水果界的“辐射之王”

亚马逊在中国的另一面

Background page production 01 production of IVX low code sign in system

TC object structure and abbreviation

Now, the ear is going into the metauniverse

Single case of hungry and lazy mode
随机推荐
Easynvr fails to use onvif to detect the device. What is the reason why "no data" is displayed?
存算一体芯片离普及还有多远?听听从业者怎么说 | 对撞派 x 后摩智能
Randla net: efficient semantic segmentation of large scale point clouds
后台页制作01《ivx低代码签到系统制作》
浏览器下载的文件属性里都有保护,如何去掉
What is an SSL certificate and what are the benefits of having an SSL certificate?
CVPR大会现场纪念孙剑博士,最佳学生论文授予同济阿里,李飞飞获黄煦涛纪念奖...
Nacos practice record
How far is the memory computing integrated chip from popularization? Listen to what practitioners say | collision school x post friction intelligence
Two way combination of business and technology to build a bank data security management system
Why can banana be a random number generator? Because it is the "king of radiation" in the fruit industry
论一个优秀红队人员的自我修养
DateTimeFormat放到@RequestBody下是无效的
俄罗斯AIRI研究院等 | SEMA:利用深度迁移学习进行抗原B细胞构象表征预测
网上开户股票安全吗?怎么开户呢?
ICML 2022 | ByteDance AI Lab proposes a multimodal model: x-vlm, learning multi granularity alignment of vision and language
发布功能完成02《ivx低代码签到系统制作》
[proteus simulation] Arduino uno+ nixie tube display 4X4 keyboard matrix keys
一文搞懂php中的(DI)依赖注入
西电AI专业排名超清北,南大蝉联全国第一 | 2022软科中国大学专业排名