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.
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.
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.
Updating the Unity version to 2020.3 Worked for me.