preface

I am deeply sorry for bringing a lot of trouble to my superiors and colleagues due to my negligence when I uploaded apK version 1.5.3 of the project at 7:00 on Saturday, 06.09, 2016. I came to the company to record my reckless and coarse behavior. I hope I will remember it in my mind and don’t make such stupid mistakes in the future.

Keep track of your mistakes

The studio version is 3.0. Let me start with the first mistake I made:

If the project is already online, before packaging APK, you must change the -> test server address to the -> online running server address, otherwise there will be problems and serious problems when you put your APP on the shelves! Very serious! Very serious! Keep in mind! This kind of elementary mistake also only I made!!

Here’s my second mistake: before a project is packaged with APK, make sure that there is anything that doesn’t need to be released (for example, it doesn’t have a complete feature, or it will be released in the next release) and hide it or comment it out!! My mistake: The message list for the home page is not yet complete and I forgot to hide it.

The above content is my mistake here to remind you and also warn yourself not to make the same mistake as I do not only need to be rigorous in code, work is also so!

How to package APK

If the above two mistakes you did not make hope to maintain their rigorous style I want to learn from you!

I put up a picture to mark the content:



Description:

Double-click the firstgradleThe inside of thegradle.propertiesAfter opening, it will be shown in the figure above

Then put theVERSION_CODE=12Every time I have to put thisIncreasing VERSION_CODE 1My CODE was 11 so now you see 12

VERSION_NAME = 1.5.4This is incremented by 0.1 each time I did 1.5.3 to keep a good iteration without overlapping versions ~!

Here we go:



Find what’s under appoutputsThe entireDelete the release folder

The purpose of this is to bring the previousThe debug versionDelete recompileThe official version of APK

So we need to recompile it after we delete it

Look at the picture

To the right of studioGradleDouble-click on the point to seeappThere is aassembleReleaseDouble-click to recompile the official VERSION of APK

The next step is to wait for Studio compilation to complete

After compiling… Look at the picture:



Will compileThe release folderUnder the official apK copyCtrl+cJust go to the desktop

APK reinforcement

After copying the official VERSION of APK to the desktop, you need to harden the APK to ensure security. Some developer platforms also need to harden the APK

I use Tencent cloudLeguPCLe solid

As is shown in



Add the official VERSION of APK on your desktop and wait for it to harden and then it will tell you that the task is complete

Then, inAuxiliary toolConfigure your information

These parameters are saved in Studio

Click Sign now to generate the hardened official APK

Then upload this APK to each big developer platform to wait for approval generally 1-3 days to ask the eldest brother account password to ~! Below I’ve posted a list of major developer websites that you can click through

Tencent’s bugly

Baidu Mobile Open platform

Meizu Open platform

OPPO open platform

Samsung Developer Platform

Xiaomi Open Platform

Ali Application distribution open platform

Anzhi Developer Alliance

VIVO Developer Platform

Tencent Open platform App Treasure

360 Mobile Open platform

Huawei Developer Alliance

All the developer platforms of our company’s APP are listed above

Share with you

I want to work my way up

Fly forward on the blades at the highest point

Let the wind blow dry tears and sweat

I want to work my way up

Waiting for the sun to watch its face

Little days have big dreams

I have my day

Let the wind blow dry tears and sweat

One day I will have my day