These two days have been entangled in this issue, because the online version of the debug version is provided, I do not know why after I package the debug version into an APK, the map is also very tangled. You can't finally see the documents on the official website. The original debug version is used for testing. If it is officially released, you need to apply for another official version. I tried to solve this small problem and provided it for your reference. I hope you can avoid detours.
The release of the official version is actually the same as that of the debug version. The official command line is as follows:
Keytool-list-alias alias_name-keystore my-release-key.keystore
Let's explain that alias_name is the time when your software is packaged into an APK.
The alias value of the first line. My-release-key.keystore
Is the key file path you are using. Here I am E: \ tools \ test Assistant
In addition, add two parameters-storepass (your first password for this key)-keypass (your second password for this key)
After understanding the above, you can run cmd to enter the command line. What I entered here is:
After the above command line is entered, MD5 will appear
Then copy the MD5 certificate
Click Open Link
You can apply for the above connection address.
When the above interface appears, our beloved ZF has made him harmonious, so we can only register it over the wall. I believe everyone knows this.
After applying, we get the key we need. This is the officially released key, not the test key.
Then you can copy the apikey to the mapview and package it into an APK. Remember to use your key file path when packaging, that is, the-keystore parameter you entered in the command line.
In this way, the package will be officially released. However, during the test, you still need to replace the key of the debug version, because this key only uses the file path you registered.