Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installation fails when trying to install Unity AndroidPlayer on macOS

I'm having trouble installing the latest version of Unity's AndroidPlayer (v5.6.1f1) on my macOS MacBook Pro (macOS version 10.12.5)

I already have Unity installed and working, but all I'm trying to do is add ability to run my games on an Android device (I have Android SDK configured and working from my previous Android App development)

I'm running the pkg file that I got from Unity called UnitySetup-Android-Support-for-Editor-5.6.1f1.pkg and go through the installation process, but after the installer begins to install the software, it fails and looking at the logs it states that PackageKit: Session UUID file exists - will not overwrite [some long path]/[filename].activeSandbox

Anyone knows what could be the problem? I've even restarted my Mac / re-downloaded the file with no avail...

Failure message

like image 348
Jonathan Perry Avatar asked Jun 20 '17 11:06

Jonathan Perry


3 Answers

I managed to defeat the issue by installing the required packages from the Unity Hub, instead of manually downloading & installing.

Start Unity -> click Installs -> reveal Add Modules by clicking the vertical 3 dots and select the modules required by clicking on the checkboxes.

like image 38
LoLo Avatar answered Oct 09 '22 19:10

LoLo


If anyone else runs into this and is unable to see the Add Modules button described in the other answer, you need to install the editor through Unity Hub in order to see that option.

I removed the old editor, went to:

https://unity3d.com/get-unity/download/archive

and then clicked the Unity Hub button for the specific version I was using. That way you're able to Add Modules :)

like image 191
JoniVR Avatar answered Oct 09 '22 17:10

JoniVR


I managed to install Android support using the full Unity3D installer and making sure that the Android support is selected. Could be a specific problem with the AndroidPlayer installation package.

like image 22
Jonathan Perry Avatar answered Oct 09 '22 19:10

Jonathan Perry