- Home /
Getting a weird error when I am trying to build this game on my android device.
When I am trying to build this game an error pops up: 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:200) In fact, I can build this game and download on my device. But when I want to test the application you can only see a black screen which closes after few seconds. I assume this error causes the crash. I also tried these two things below which doesn't help me either.
-open the cs script
-download the latest version of Unity, SDK and JDK I know that this question already exists, but even in the comments it was never clear what the actual answer behind the issue is.
Your answer
![](https://koobas.hobune.stream/wayback/20220612193830im_/https://answers.unity.com/themes/thub/images/avi.jpg)