Use HBuilder editor to package html5 pages into APP

 

Use HBuilder editor to package html5 pages into APP (ios+Android)

1. First install the HBuilder editor.


Download link: http://www.dcloud.io/

 

2. HBuilder Editor Menu ---->File ---->New ---->App Project ---->Add Project Name ---->Select Instance Template.

 




3. After the creation, modify the path of the h5 page to be generated in manifest.json. You can use the local file or the online link.



4. After the path is specified, right click on the directory---->Issue---->Issue as the original installation package----> Then we need to configure the parameters, because many functions are temporarily unused, we can fill in the test to prevent Leave blank.

 




5. At this time, it can be packaged. When packaging, it may prompt that the network problem cannot be packaged. At this time, try a few more times. After uploading, you need to wait 2-3 minutes for it to pack.

 



6. After the download is completed, you can install the test on the mobile phone, and you can also test it on the computer side according to the mobile phone simulator. We have taken Android as an example, and you can use simulators such as "Blue Stack", "PP Assistant", "Night You God", etc. I have "blue stack" as an example.

 




7. After the installation is successful, click the Android simulation of the test1 icon to start the h5 page test.







The above is the most basic shell packaging.

 

Reprinted: https://blog.csdn.net/qq_35515563/article/details/71126489

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326001695&siteId=291194637