I’m experiencing a strange issue where it appears that Android applications with different package names are being considered by the Android device as the same game. I have several applications that install perfectly fine on their own, but as soon as one of the other applications is installed, the rest fail to install. I was wondering if anyone could help me find a solution to this problem, since everywhere I have looked appears to have a similar problem, but the solutions do not work.
If I try to install one of the applications via the PlayStore and I have none of the other applications installed, the game installs perfectly. However, if I have any of the other applications installed, I get the error message:
Can’t install app
“App Name” can’t be installed. Try again, and if the problem continues, get help troubleshooting. (Error code: -505)
On further investigation, I get the following error message when I try to Build & Run in Unity with another application already installed on the device:
UnityException: Unable to install APK!
Installation failed. See the Console for details.
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, UnityEditor.Android.CommandInvokationFailure ex)
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuildPointToConsole (System.String title, System.String message)
UnityEditor.Android.PostProcessor.Tasks.PublishPackage.UploadAPK (Boolean retryUpload)
UnityEditor.Android.PostProcessor.Tasks.PublishPackage.Execute
(UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks
(UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessAndroidPlayer.Launch (BuildTarget target, System.String installPath)
UnityEditor.Android.AndroidBuildPostprocessor.LaunchPlayer (BuildLaunchPlayerArgs args)
UnityEditor.PostprocessBuildPlayer.Launch (BuildTargetGroup targetGroup, BuildTarget target, System.String path, System.String productName, BuildOptions options) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:150)
UnityEditor.HostView:OnGUI()
My theory is that the applications are somehow thought of as different versions of the same apk, and will refuse to install if any of the conflicting apks are present. I’ve checked the package names and keystores, however, and all of them are different. I’ve tried changing the package names, version numbers, bundle version codes, and the keystores, and nothing has worked so far. I also tried switching Install Location to automatic for all the conflicting apps, but that doesn’t appear to be working either.
If anyone has any ideas of things I could investigate to resolve this, please let me know.