当前位置:网站首页>如何使用IDE自动签名调试鸿蒙应用
如何使用IDE自动签名调试鸿蒙应用
2022-07-02 07:16: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进行保存即可进行鸿蒙应用调试。
相关参考请参见
边栏推荐
- STM32 and motor development (upper system)
- 4.随机变量
- 01-spooldir
- MongoDB 学习整理(条件操作符,$type 操作符,limit()方法,skip() 方法 和 sort() 方法)
- AttributeError: type object ‘Image‘ has no attribute ‘fromarray‘
- Dialogue Wu Gang: why do I believe in the rise of "big country brands"?
- 【快应用】text组件里的文字很多,旁边的div样式会被拉伸如何解决
- 大华设备播放过程中设置播放速度
- Redis set password
- [SUCTF2018]followme
猜你喜欢
(5) Gear control setting of APA scene construction
Shell programming 01_ Shell foundation
(五)APA场景搭建之挡位控制设置
The URL in the RTSP setup header of the axis device cannot take a parameter
UVM learning - build a simple UVM verification platform
Flutter环境配置保姆级教程,让doctor一绿到底
互联网快讯:腾讯会议应用市场正式上线;Soul赴港递交上市申请书
Read H264 parameters from mediarecord recording
Leetcode+ 76 - 80 storm search topic
对话吴纲:我为什么笃信“大国品牌”的崛起?
随机推荐
2022爱分析· 国央企数字化厂商全景报告
Kustomize user manual
Transport Optimization abstraction
[visual studio] visual studio 2019 community version cmake development environment installation (download | install relevant components | create compilation execution project | error handling)
Learn open62541 -- [66] UA_ Generation method of string
2.hacking-lab脚本关[详细writeup]
PCL之K-d树与八叉树
MYSQL环境配置
4. Random variables
Start class, data analysis, high salary training plan, elite class
shell编程01_Shell基础
JS settimeout() and interview questions
In the face of uncertainty, the role of supply chain
JSP webshell免杀——JSP的基础
(五)APA场景搭建之挡位控制设置
PCL 点云转深度图像
Open the encrypted SQLite method with sqlcipher
数据库字典Navicat自动生成版本
13. Semaphore critical zone protection
lunix重新分配root 和 home 空间内存