赞
踩
打开DevEco Studio,点击菜单栏上的build,
填一些信息点击,没有key的话点击new一个新的key。
AppGallery Connect (huawei.com)
进入该链接网站,点击用户与访问将刚生成的csr证书提交上去
其中需要提供设备的uuid,查看uuid设备的方法如下:
./hdc shell bm get --udid
,返回的就是设备的uuid了。hdc list targets
查看是否已经可以获取设备信息然后添加项目,申请profile
然后点击添加应用添加完应用,点击右侧边栏最下面的HarmonyOS应用,HAP Provision Profile 管理页面中。
接下里下载Profile 和之前生成的那一些放在一个文件夹里面。
现在进入DevEco Studio配置签名信息
注意,需要改一下bundleName,如果SigningConfigs设置中的bundleName和app.json5文件中的bundleName不一样,真机调试编译的时候不会通过。会报以下的错误:
- Detail: Open the project-level build-profile. json5 file. Change the bundleName value
- to that in the SigningConfigs. Otherwise, go to the app.json5 file and change the bundleName value there.
- BundleName in Project: com.example. microincubatordemo,
- BundleName in SigningConfigs: stm32.micro.whz.
打开app.json5文件,修改bundleName与SigningConfigs中的一样即可。
最后连接数据线,点击运行就可以远程调试了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。