3

2019.1.0a13

1113208

Yes

[Android] IndexOutOfRangeException is thrown when refreshing device list with the build window closed

IndexOutOfRangeException is thrown on switching the platform to Android when Assets are present in the Project

Steps to Repro:
1. Open a new project
2. Make sure you don't have a device plugged into your machine
3. Open android build settings
4. Click on "Refresh" near "Run Device" section
5. Close the build settings window before the refresh is complete
6. Notice the error in the console

In theory, this should also be possible with a device connected, but the refersh is very fast when there's a device. It's a lot slower without one.

Comments (5)

Machlou_Med

Apr 29, 2020 09:37

I had the same issue and the fix was to create the project in a different folder. It might be permission issues in your windows file system. You should try to save your project into C:\Unity3D-AR or something like in this folder.

KingKong320

Aug 21, 2019 07:27

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: