当前位置:网站首页>Problems encountered in the application and development of Hongmeng and some roast
Problems encountered in the application and development of Hongmeng and some roast
2022-06-26 10:15:00 【Shake half a bottle of vinegar】
The last one said from android It is better to transfer R & D to Hongmeng application , But in the process of development, there are still many pitfalls , There are many places that want to roast ( Sometimes I really want to drop the keyboard ...TAT).
To make complaints about one : The real machine debugging signature problem in the development process of Hongmeng
When developing Hongmeng application , If you want to use Hongmeng mobile phone for real machine debugging , Compared with android In terms of application , There are many restrictions , so much trouble . Hongmeng system has made many restrictions on real machine debugging , It's kind of like ios Restrictions on real machines , You need to register the application on the Hongmeng developer platform , Register the information of the real machine for debugging , Also upload the signature file .
For independent developers , Just create an application on the developer platform , In Hongmeng ide Log in to your own account , In the signature settings, just use the auto generate signature ,ide It will automatically generate a signature according to your real device ( Signed documents and real machines UUID It's one-to-one , Therefore, one signature cannot be used by multiple mobile phones ), And upload the generated signature file and real machine equipment information , The steps are as follows :

chart 1: Automatically generate signatures ( Fool operation )
For team developers , Such a design is troublesome . First of all, you should register the application on the developer platform , But you need to use the developer account registered by the company . Because it is the company's account number , Can be used to publish applications , Application upgrade, etc , So you can't log in to all developers once , Go to the signature operation , The method mentioned above cannot be used . In this case, you need to sign the document , Click... In the main menu bar Build > Generate Key and CSR, Follow the steps , You can get the keystore file (.p12) And certificate request file (.csr). stay AppGallery Connect Log in to the company account , choice “ Users and access ”, In the left navigation bar, select “ Certificate management ”, Enter the certificate management page , Click on “ New certificate ”, Upload the newly generated certificate . After the upload , Click the certificate to download to the certificate .cer file , In the engineering of gradle File or main menu > File > Project Structure Complete signature configuration in . The resulting signature is independent of the device information , Upload the code to the version controller , All team members can download and use . Last but not least AppGallery Connect, choice “ Users and access ”, Register device information in device management , You can choose to download templates and upload them in batches ( In this way, you need to obtain the UUID, Read the documents on the official website , need hdc shell Connect the phone , Enter the command to get , so much trouble ), You can also let the company account logins automatically generate signatures by connecting their mobile phones to run the application ,ide The device information will be uploaded automatically , But here's the thing , A project can only have 1 individual release Signature and 2 individual debug Signature , If the signatures are full , You can't do this . If it is a debugging device imported in batch on the web page , Still need to be in AppGallery Connect Of the project HarmonyOS application > HAP Provision Profile Add debugging on the management page Profile.( Reference documents : Document center )
Make complaints about two :API Not all functions , part API There is bug
In the process of developing the application of Hongmeng , There will be many strange problems , The final conclusion is API Incomplete and partial API There is bug As a result of . Take a chestnut , It is used in Hongmeng state To achieve android Inside selector The function of , For example, distinguish the background picture of normal state and pressed state, etc . But in the use of state In the process of , I met a strange pit .button Use state Invalid , Finally, I found the same question on the forum , The conclusion is that empty The status description of is placed on the last line , Because in harmony Inside ,empty Can adapt to any situation ,empty On the first line , Will always enter empty That line of business .
Now Hongmeng feels more like a semi-finished product , But it's right js and java All supported features , Make it worth affirming , But Hongmeng ecology still needs to continue to develop . As a Chinese , Domestic systems should be supported and tried .
边栏推荐
- P1296 whispers of cows (quick row + binary search)
- Cmake / set command
- leetCode-链表的中间结点
- Introduction to libmagic
- 定制拦截器
- Testing practice - App testing considerations
- How to find and install the dependent libraries of Debian system
- Leetcode connected to rainwater series 42 (one dimension) 407 (2D)
- 2. merge two ordered arrays
- MySQL learning summary
猜你喜欢

【Leetcode】76. 最小覆盖子串

118. Yanghui triangle

#云原生征文# 在 Google Kubernetes Cluster 上使用 HANA Expression Database Service

Allocation of heap memory when creating objects

C中字符串基本操作

Redis notes (12) - single thread architecture (non blocking IO, multiplexing) and multiple asynchronous threads

904. fruit baskets

Appium automation test foundation - mobile end test environment construction (II)

字符串常量池、class常量池和运行时常量池

Solution to network request crash in retrofit2.8.1
随机推荐
WIN10系统实现Redis主从复制
How to find and install the dependent libraries of Debian system
Problems encountered by jupyter notebook
Luogu 1146 coin flip
What are the symbolic and direct references of the JVM
Introduction to stored procedure testing
Leetcode connected to rainwater series 42 (one dimension) 407 (2D)
[untitled]
How do technicians send notifications?
Redis notes (12) - single thread architecture (non blocking IO, multiplexing) and multiple asynchronous threads
echo $?
[sans titre]
瑞萨电子面向物联网应用推出完整的智能传感器解决方案
Redis notes (16) - info instructions and command line tools (view memory, status, number of client connections, monitoring server, scan large keys, sampling server, execute batch commands, etc.)
Does the go compiled executable have dynamic library links?
Various errors encountered by tensorflow
Crawler related articles collection: pyppeter, burpsuite
US President signs community safety act to deal with gun issue
P1296 whispers of cows (quick row + binary search)
SSM项目小例子,SSM整合图文详细教程