[2021.2.12f] Android build - [*]-FeaturesChecked.txt failed

After updating to 2021.2.12f android builds fail with this error:

Building Library/Bee/artifacts/Android/Features/IR.Logic.Interfacess-FeaturesChecked.txt failed with output:
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.SZArrayHelper.GetEnumerator[T]()
   at System.IO.File.InternalWriteAllLines(TextWriter writer, IEnumerable`1 contents)
   at System.IO.File.WriteAllLines(String path, IEnumerable`1 contents)
   at System.IO.File.WriteAllLines(String path, String[] contents)
   at NiceIO.NPath.SystemIOFileSystem.File_WriteAllLines(NPath path, String[] contents)
   at NiceIO.NPath.WriteAllLines(String[] contents)
   at PlayerBuildProgramLibrary.FeatureExtractor.Run(CSharpActionContext ctx, Boolean ignoreSystemDlls) in /Users/bokken/buildslave/unity/build/Editor/IncrementalBuildPipeline/PlayerBuildProgramLibrary/FeatureExtractor.cs:line 40
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

Is it bug or maybe I do something wrong?

First thing to do is make a blank project, one scene, and make sure that builds.

If it does not build then nothing will build.

If it builds then there’s something in your project you can track down.

Either way, you gain intel about what’s going on. The android build messages are often useless this way, unless you can figure out exactly how to ferret out what Gradle is complaining about.

UPD: It was silicon Unity version. Intel version built success

1 Like