Hi folks,
I’m importing a Unity 4.6.8 project into 5.2.1 to test the waters, so to speak. Project compiles, plays, and builds successfully in 4.6.8 in 3 platforms (iOS/Android/WSA).
I’ve migrated the project, handled some plugins that were complaining, also fixed some scripts and the game plays as expected in the Editor. Project settings are kept the same as in 4.6.8.
However, whenever I tried to build an Android APK, I get the following error, and the build fails:
IndexOutOfRangeException: Array index is out of range.
UnityEditor.Android.PostProcessAndroidPlayer.CheckPluginsBundleIdForConflicts (System.String stagingArea, UnityEditor.Android.AndroidLibraries androidLibraries)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
UnityEditor.HostView:OnGUI()
Here’s what I tried until now, but the error still persists:
- to re-open the project in v 5.1
- to create a new project and copy project files there
- to download new Android sdks
- to downgrade to v4 tools of android instead of v5
- To delete the whole Library/ folder and re-import everything
- To completely remove GooglePlayGamesPlugin-0.9.21 as suggested in another post
I’m really out of my wits here, this looks like a very unclear message and I’m not sure what it’s complaining about… Any ideas?
Thank you!
*EDIT: Updated with some more things that I’ve tried