I am working on a game for android, and I have the Android module downloaded and setup and was doing test builds every day, but ever since 2018.3.* updates, every next day when I open my project in unity I am presented with a small window with this line “Build Target Android is not supported, switch to Windows Standalone or Exit Unity?”, and there are two buttons on the bottom “Switch Target” and “Exit Unity”.
Even If I press “Exit Unity”, the build target is set to Windows Standalone the next time I open my project.
If I press “Exit Unity”, and install and android module and open my project again the build target is set to Windows Standalone for my project.
If I open the project as it is, I see these type of options,
Notice that it says no android module selected, though there is option to “Switch Platform” there.
In this case if I press the “Switch Platform” button I am stuck in this screen.
If I install the Android module, I am able to work on my project correctly, for the day, but the next day again I have to face this.
Please help as installing android module and changing the build target to Android everyday is very much time consuming.
Updated to 2018.3.6f1, to still see the same “Switch Target” window, and now it is taking me hours to switch to Windows platform, just so I can switch to Android platform again.
I faced the same issue on Unity 2018.3.6f1 today. It was showing that both IOS and Android modules not installed. Reinstalled the Android module (did not install IOS again) and restarted the project, and both IOS and Android modules now available again.
Same thing happened to me but it didnt spend hours to switch platform as i have enabled the Cache Server. please read about it here. Very helpful for mobile devs who have to switch platforms frequently.
I have been getting this for sometime now. I install Android module every time and it seems to work fine and then in a few days again, it shows up.
It is happening right now after 3-4 days of working normally.
It seems as if the android module gets uninstalled on its own or somehow becomes undetectable by unity. Is there a way to correct this?
After I repeatedly tried to get into Unity by exitting it, it got me through and in build settings I am seeing android module intact but in console I see this error
IndexOutOfRangeException: Index was outside the bounds of the array.
UnityEditor.Android.AndroidBuildWindowExtension.GetBuildPlayerWindow () (at :0)
UnityEditor.Android.AndroidBuildWindowExtension.RepaintTargetList () (at :0)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:200)
This issue appears to occur when you install a 2018.3.x or earlier version and update it multiple times to a higher version.
It also occurs at 2018.3.8f1.
This problem occurs 100% after rebooting Windows.
I installed the same version on both my laptop and desktop.
The problem only occurs on the desktop.
Uninstalling and reinstalling Unity at this time and installing the Android support module will not fix the problem.
When you run Unity, first open a blank project, change the project to Android, then open the wrok project and open it normally. It is a way to shorten the time.
I’m facing the same problem, every time I restart Unity, it can’t detect android module. I have to reinstall the android module by running “UnitySetup-Android-Support-for-Editor-2018.3.8f1.exe” or switch to standalone, open project, switch back to android (Even then the build option is greyed out in build settings, but the build and run option from file menu works, make sure the unity icon is next to android in build settings)
Is the same for me, updated Unity, 2018.3.8 e it continues. The modules already instaled. I need to open in standalone e close the project, after this I re-open e switch platform works, but is tedius do the same thing all the time.
Before you select your project,
select “Learn” Tab, then back to “Project” tab and select your project.
This solved me the problem. (osx Mojave, 2018.3.6f1)
This happened with Unity 2018.3.5, I updated to Unity 2018.3.8, but after few days, happening again.
If I close the error window, create a new project and open the old project from File menu, it works fine without having to reinstall plugin and switch platform