Array index is out of range

Can someone please help me find out why my game is all of a sudden giving me this error…


IndexOutOfRangeException: Array index is out of range.

UnityEditor.Android.AndroidBuildWindowExtension.GetBuildPlayerWindow ()

UnityEditor.Android.AndroidBuildWindowExtension.RepaintTargetList ()

UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:191)


I “Build and Run” my game which has 3 scenes with indexes 0, 1 and 2 and it gets to the very last part of building where it tries to put it on my phone (Android Game) but then fails and seems to not do anything.

The file in questions (EditorApplication.cs:191) says this


static void Internal_CallUpdateFunctions()

{

if (update != null)

update();

}


Whcih doesn’t really help but anyway.

Can someone please help.
If it matters I added a new scene and renamed an existing scene since last successful build.
The game also tests fine in the editor.

Thanks

I actually changed the drive I was saving to and it works. I think it may have been a permissions problem or something. Cautiously optimistic until it happens again.

Thanks