当前位置:网站首页>如何使用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进行保存即可进行鸿蒙应用调试。
边栏推荐
- 孙武玩《魔兽》?有图有真相
- 同花顺证券开户是安全的吗?
- 用指南针开户如何选择证券公司?哪一个是更安全的
- Background page production 01 production of IVX low code sign in system
- Wuenda, the new course of machine learning is coming again! Free auditing, Xiaobai friendly
- Is it safe to open an account online? Online and other answers
- 在华泰证券上面开股票账户好不好,安不安全?
- Musk: Twitter should learn from wechat and make 1billion people "live on it" into a super app
- 马斯克:推特要学习微信,让10亿人「活在上面」成为超级APP
- AI越进化越跟人类大脑像!Meta找到了机器的“前额叶皮层”,AI学者和神经科学家都惊了...
猜你喜欢
MySQL installation tutorial
你真的需要自动化测试吗?
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
Maintenant, les oreilles vont entrer dans le métacosme.
Google founder brin's second marriage broke up: it was revealed that he had filed for divorce from his Chinese wife in January, and his current fortune is $631.4 billion
Now, the ear is going into the metauniverse
x86 CPU,危!最新漏洞引发热议,黑客可远程窃取密钥,英特尔“全部处理器”受影响...
大咖说*计算讲谈社|如何提出关键问题?
陆奇首次出手投资量子计算
DevEco Studio 3.0编辑器配置技巧篇
随机推荐
同花顺证券开户安全吗
在华泰证券上面开股票账户好不好,安不安全?
论一个优秀红队人员的自我修养
ICML 2022 | ByteDance AI Lab proposes a multimodal model: x-vlm, learning multi granularity alignment of vision and language
单例的饥饿、懒汉模式案例
TCC mode explanation and code implementation of Seata's four modes
用CPU方案打破内存墙?学PayPal堆傲腾扩容量,漏查欺诈交易量可降至1/30
吴恩达机器学习新课程又来了!旁听免费,小白友好
Tencent's open source project "Yinglong" has become a top-level project of Apache: the former long-term service wechat payment can hold a million billion level of data stream processing
股票开户用客户经理发的开户链接安全吗?知道的给说一下吧
做自媒体不知道怎样变现?7大变现方法分享
There is the word "Internet" in the concept of industrial Internet, but it is an existence that is not related to the Internet
程序猿职业发展9项必备软技能
C语言数组与结构体指针
The file attributes downloaded by the browser are protected. How to remove them
Background page production 01 production of IVX low code sign in system
同花顺证券开户是安全的吗?
Maintenant, les oreilles vont entrer dans le métacosme.
Skywalking implements cross thread trace delivery
Seata四大模式之TCC模式详解及代码实现