Array index is out of range. UnityEditor.Android.AndroidBuildWindowExtension.GetBuildPlayerWindow ()

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 have just a simple scene with a button

Attempting to connect with Leaderboard

Compiling on Windows 8.1 app just stops working

Unfortunately, XXXX has just stopped working

Any help?,I have one scene and compiling on Windows 8.1
Attempting to make a connection with a Leaderboard.
App just stops working and shuts down.

Solution: (For Android)

You can try going to Build Settings [in File->Build Settings or hit (Ctrl+Shift+B)] and click Player Settings (Also can be accessed from Edit->Project Settings-> Player) and in the Inspector window select Other Settings. Under Rendering see if the following options are checked:

  • Auto Graphics API
  • Multithreaded Rendering
  • Static Batching
  • Dynamic Batching
  • Lightmap Streaming Enabled

And that’s is.


Hope it helps…
@SiddiqTech, @a86189642, @darkvam

I just changed the Build System from Gradle to Internal, the app works, login occurred no crash, but the error remains

@SiddiqTech

Same here, but without crashing. Build works fine, but that error pop up everytime.

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)

Same here when open player setting for android. but without crashing.
It happen after I update from 2017.3.1 to 2018.2.1f and still there with 2018.2.5f ,
I can still compiling the project normally(for android app), but It crashed after the actual machine test.
I tried to update android sdk and jdk as well as admob plugin, the call still exists,
I’m not sure if this is causing my crash, in fact there is no problem in the previous build and actual test with this error in the console.