Recently, HTML5 was developed using Hbuilder because HTML5 can be placed on an Android machine or on an iOS machine, so it's interesting to develop a small application that
But here's the problem:
Figure 1
: When iOS is packaged, a certificate password and provision file are required.
Android packaging also requires a certificate file,
(1) First talk about the Android packaging process;
Android Publishing
For Android platforms, you can choose to use the public certificate generated by Dcloud or the certificate you generate, which does not affect the release of the installation package, except that the developer and enterprise information in the certificate is different.
Generate an Android signing certificate
( ignoring this operation with the dcloud Public certificate) ensures that the JRE is installed on the computer, and we will use the JRE's own tool Keytool to create and manage digital certificates. Use the following command to generate the certificate:
ANDROID1 Chart
keystore
Helloworld.keystore represents the generated certificate, which can be added to the path (by default in the user's home directory);
alias
HelloWorld indicates that the certificate alias is HelloWorld;
keyalg
RSA represents the RSA algorithm used;
validity
10000 indicates that the certificate is valid for 10,000 days.
Configuring packaging information
- Using Dcloud public certificates
- Android2 Chart
App Package name : Android App package name, using reverse domain style string, such as "Com.domainname.appname".
- Use your own certificate
- ANDROID3 Chart
App Package name : Android App package name, recommended to use reverse domain style string, such as "Com.domainname.appname";
Certificate Aliases : Certificate aliases set using the-alias parameter when generating certificates;
private Key Password : The keystore password used when generating the certificate;
certificate file : The certificate save path that is set with the-keystore parameter when the certificate is generated;
View packaging status
Open the View App Packaging Status dialog box to view the packaging history and status by viewing the packaging status in the menu bar, publish, and then:
ANDROID4 Chart
If the "Make Status" column shows "package is successful, download complete" means the cloud package is complete, click "Open Download Directory" To view the downloaded installation package.
A ready-made installation package that allows developers to continue downloading within 2 days. The server clears the file after 2 days.
The common causes of packaging failures are:
If you use your own certificate, it is most likely a certificate configuration error.
If you still have an error using the Dcloud certificate, it is probably a picture error. All image formats must be standard PNG and strictly conform to the resolution requirements. Renaming to PNG with a different picture format will cause the package to fail!
Other errors please refer to: Cloud Packaging common error Troubleshooting Guide
Next story about IOS packaging
Apple application Windows request a general certificate and a push certificate Hbuilder