1

i'm using unity 2019.4.3 and when I try to build the app for android it gives me this two errors:

1st error:

Library\PackageCache\com.unity.xr.management@4.0.1\Editor\XRGeneralBuildProcessor.cs(83,52): error CS0117: 'BuildPipeline' does not contain a definition for 'GetBuildTargetName'

2nd error:

Library\PackageCache\com.unity.xr.management@4.0.1\Editor\XRGeneralBuildProcessor.cs(36,52): error CS0117: 'BuildPipeline' does not contain a definition for 'GetBuildTargetName'

It showed up to me after I installed the ARCore XR Plugin package , and I try to downgrade the version of the package.

Jakub Szlaur
  • 1,852
  • 10
  • 39
nour
  • 19
  • 1
  • 3

3 Answers3

0

It probably invisibly updated XR Plugin Management. Try to downgrade AR Core XR Plugin to latest version that does not require XR Management Toolkit upgrade or as suggested update Unity version.

0

I found this link which helped me resolve the errors.

Specifically, this solution:

I've just encountered this. I had AR Foundation 4.1.3 and ARKit XR Plugin 4.1.3 imported and with them it wouldn't let me downgrade XR Plugin $$anonymous$$anagement to 3.2.16. I've just downgraded both AR Foundation and ARKit to 4.1.1 and now I can downgrade to XR Plugin $$anonymous$$anagement to 3.2.16 and it compiles.

ray an
  • 1,132
  • 3
  • 17
  • 42
0

Updating the Unity version to 2020.3 Worked for me.