Fix Errors and warnings:
First we have to get rid of the different Build errors.
A new Error / Warning was…
set_forceSDCardPermission is not alloewd to be called from a MonoBehaviour constructor
Google is your friend and so we found the following.
https://blogs.unity3d.com/2016/06/06/serialization-monobehaviour-constructors-and-unity-5-4/
See “Script Serialization” page in the Unity Manual for further details.
UnityEditor.Android:set_forceSDCardPermission(Boolean)
After some digging into the source we found out, that this error is from a third party Unity External Asset (UEA) named Very Simple Share.
#if UNITY_EDITOR static VSSHARE() { PlayerSettings.Android.forceSDCardPermission = true; } #endif
Because we already defined the SD Card as the prefered location and this code is only used to “do the developers work” in the Unity Editor, we just commented the code block which fixed the Error.
Build Settings – 2 Versions for ARM and x86:
To minimize the APK file I tried to split the APK in a Version for ARM and one for x86.
Compared to the joined APK the resulting APKs are much smaller.
Joined: 23.371 KB
ARM: 14.868 KB
x86: 15.251 KB
Details to ARM vs x86:
http://gamedev.stackexchange.com/questions/116027/armv7-vs-fat-in-unity-android-build-settings-release-multiple-valid-apks
Important if you split ARM and x86:
Build an ARMv7 only package and an x86 only package with different version codes. The versionCode of the x86 package has to be higher than the one of the ARM package.
When publishing, send both of your APKs to the developer console. Note that you need to be in “advanced mode” to distribute multiple APKs.
Details for ARM vs. x86 http://answers.unity3d.com/questions/971648/device-filter-to-arm-7-only.html
Resulting in the following steps…
1) build 1 joined APK for this version / release
2) build ARM package
3) increase Version ++
4) build x86 package
*same APK name needed / different APK names… TODO – update this info.
Upload to google Play… (Advanced Developer Console to allow multi APKs)
Steps for DevConsole Management has to be re-written in a new DevLog since today I had to change a lot of settings connected still to the old Pendolino Developer Console.
Manage App in the DevConsole:
https://play.google.com/apps/publish
ARM Version is still uploading. I have found the “Advanced Console Settings” after the first upload.
Update:
It is horrible to upload the APKs with the slow connection I have here. I also failed to create a “multiple” APK.
Next time…
https://developer.android.com/training/multiple-apks/index.html
https://developer.android.com/google/play/publishing/multiple-apks.html
On the site I saw the recommendation to use multiple APKs for filesize > 100mb. So I just uploaded the 1 APK fits all solution.
Argghhhh… Also the Beta Test has not yet started… Still missing some things… TODO – after lunch:
https://support.google.com/googleplay/android-developer/answer/3131213