TexturePlatformSettingsHelper does not contain a definition for GetBuildTargetName XR Plugin Management error?

Hello, I’ve had some issues after updating some packages. Specifically my project starts in safe mode with the following error

In the code it looks like this

After searching for a while, I haven’t found anyone having this specific problem, only similiar ones. The main reoccuring solution was to downgrade the XR Plugin Management to 3.2.15 or 16, however, the version of unity I’m using does not allow me to change or downgrade the package. I’m unsure of what to do here, would be wonderful to have some help. The version of unity I am using is 2021.2.5 and the currently installed XR PM is 4.2.0

Does anyone else have a similiar issue or a solution for this?

I got a solution for this, not practical but removing the package 2D PSD Importer resolves this. I’m not an expert but I’m guessing that package has an error, I’m sure unity is working on it :slight_smile:

1 Like

@ArminRB I ran into this same issue. For me the cause was that I was using the most up to date version of the 2D PSD Importer BUT I was using an LTS version of Unity from 2020.

So your issue is likely the same as mine (the version of Unity you are using is too old to support it): use a newer version of Unity if you need the 2D PSD Importer Package

I had to downgrade two packages to fix this issue

  • 2D Animation to 5.0.4
  • 2D SpriteShape to 5.1.1

Then I remembered that Unity has a tendency to update some packages but not others depending on your version of Unity. I experienced this when trying to upgrade the Input System to 1.3.0, only to discover that the package manager didn’t indicate that there was an upgrade.


  • Setting “com.unity.2d.psdimporter” in manifest.json to “4.1.3” fixed this (without downgrading)

I had the same issue and got it resolved updating 2D PSD Importer to 4.2.0 version.

I have downgrade the 2D animation package to 5.2.0 from 5.2.6 and also the PSD Importer package to older version 4.3.0. It Solve the issue for me.