英文:
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包更新到最新版本来解决了它。你可以试一试。
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论