从Android平台切换到UWP平台。

huangapple go评论52阅读模式
英文:

switch from Android platform to UWP platform

问题

I am using ASA and MRTK in Unity Project. At first, I build the app for HoloLens, then I switch to Android to build for an Oculus device. When I switch back to UWP, I faced this error:

Library\PackageCache\com.microsoft.azure.spatial-anchors-sdk.core@7b2d5f79f09a\Runtime\Scripts\SpatialAnchorManager.cs(517,90): error CS1061: 'CloudSpatialAnchor' does not contain a definition for 'OpenXrAnchor' and no accessible extension method 'OpenXrAnchor' accepting a first argument of type 'CloudSpatialAnchor' could be found (are you missing a using directive or an assembly reference?)

Thank you in advance for your reply.

英文:

I am using ASA and MRTK in Unity Project. At first, I build the app for HoloLens, then I switch to Android to build for an Oculus device. When I switch back to UWP, I faced this error:

Library\PackageCache\com.microsoft.azure.spatial-anchors-sdk.core@7b2d5f79f09a\Runtime\Scripts\SpatialAnchorManager.cs(517,90): error CS1061: 'CloudSpatialAnchor' does not contain a definition for 'OpenXrAnchor' and no accessible extension method 'OpenXrAnchor' accepting a first argument of type 'CloudSpatialAnchor' could be found (are you missing a using directive or an assembly reference?)

Thank you in advance for your reply.

答案1

得分: 1

我重现了你的问题,并通过将所有使用的ASA包更新到最新版本来解决了它。你可以试一试。

从Android平台切换到UWP平台。

英文:

I reproduced your issue, and I solved it by updating all the ASA packages used to the latest version. You can have a try.

从Android平台切换到UWP平台。

huangapple
  • 本文由 发表于 2023年5月11日 02:03:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76221400.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定