AddressableAssetSettings.BuildPlayerContentImpl - NullReferenceException

Hello! I recently updated my project to 2022.2.18 from 2021.3.22.

Had a few things I needed to shuffle around but I managed to get them sorted. However, this null reference exception is causing me a headache. I tried investigating with the info in the stack trace but had no luck.

The error only seems to occur when trying to build the project.

Here is the stack trace.

NullReferenceException: Object reference not set to an instance of an object
  at UnityEditor.AddressableAssets.Settings.AddressableAssetSettings.BuildPlayerContentImpl (UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput buildContext, System.Boolean buildAndRelease) [0x00032] in .\Library\PackageCache\com.unity.addressables@1.21.10\Editor\Settings\AddressableAssetSettings.cs:2813
  at UnityEditor.AddressableAssets.Settings.AddressableAssetSettings.BuildPlayerContent (UnityEditor.AddressableAssets.Build.AddressablesPlayerBuildResult& result, UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput input) [0x0005a] in .\Library\PackageCache\com.unity.addressables@1.21.10\Editor\Settings\AddressableAssetSettings.cs:2776
  at UnityEditor.AddressableAssets.Settings.AddressableAssetSettings.BuildPlayerContent (UnityEditor.AddressableAssets.Build.AddressablesPlayerBuildResult& result) [0x00000] in .\Library\PackageCache\com.unity.addressables@1.21.10\Editor\Settings\AddressableAssetSettings.cs:2753
  at AddressablesPlayerBuildProcessor.PrepareForPlayerbuild (UnityEditor.AddressableAssets.Settings.AddressableAssetSettings settings, UnityEditor.Build.BuildPlayerContext buildPlayerContext, System.Boolean buildAddressables) [0x00046] in .\Library\PackageCache\com.unity.addressables@1.21.10\Editor\Build\AddressablesPlayerBuildProcessor.cs:101
  at AddressablesPlayerBuildProcessor.PrepareForBuild (UnityEditor.Build.BuildPlayerContext buildPlayerContext) [0x00006] in .\Library\PackageCache\com.unity.addressables@1.21.10\Editor\Build\AddressablesPlayerBuildProcessor.cs:80
  at UnityEditor.Build.BuildPipelineInterfaces.PreparePlayerBuild (UnityEditor.Build.BuildPlayerContext context) [0x00025] in <10c84b1f46b048e28e06a4f5c75562ed>:0
  at UnityEditor.BuildPipeline.PreparePlayerBuild (UnityEditor.BuildPlayerOptions buildPlayerOptions) [0x00008] in <10c84b1f46b048e28e06a4f5c75562ed>:0
UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, Int32, BuildOptions, String[], Boolean)
UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions)
UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions)
UnityEditor.<>c__DisplayClass46_0:<GUIBuildButtons>b__0()
UnityEditor.GenericMenu:CatchMenu(Object, String[], Int32)

The Addressables package seems to be the root cause as after removing the package I was able to build without issue. But after adding the package back the issue persists.

Is there a setting(s) I need to change? Google wasn’t much help and as I said my own investigation led me nowhere.

Any help would be greatly appreciated!

Me too, I just removed that shit

I’m having this same issue right now. Did you find a solution?

Sadly not. I just ended up not using addressables.