This is the fifth day of my participation in Gwen Challenge

preface

Because we use Unity packaging project, there will be multiple packaging, so we will have an APK coverage problem this article for this problem to do a simple method to solve, pro test is still very useful, let’s see!

Unity packages multiple android APKs from the same project without covering each other

Summary: When we package an APK for testing in the same Unity project, we often package several versions for testing, but when you modify the project to package a new APK and install it on the device, the new APK will overwrite the old APK. Most of the time, this is what we want, but in some cases, we don’t want to overwrite it directly, but to have both APKs on the device. So feature this article for use.

There are several simple Settings to change when packaging APK:

The first is the name of the company. If there is no fixed requirement, it can be modified according to the situation

The second is the name of the APK to be packaged, which can be modified as needed

The value of the Build Indentifier attribute is in the “com.aaA.bbb” format. Aaa: company name, BBB: project product name. To achieve the same effect of the two APKs mentioned at the beginning of the article is to modify this third step,

Format The Build Indentifier property is in com.aaA. BBB format. Aaa: company name, BBB: project product name.

BBB can be modified to be different from the old APK.

conclusion

We just need to change the package name and the company name, and then pack it again. In this way, two APKs can be installed on the equipment at the same time for instrument testing.