简体   繁体   English

无法在MvxFramentActivity中解析SupportFragmentManager

[英]Cannot resolve SupportFragmentManager in MvxFramentActivity

Following along in the N=26 presentation for fragments, I am running into a problem where the SupportFragmentManager is not able to be resolved: 在N = 26片段演示中,我遇到了一个无法解决SupportFragmentManager的问题: 无法解析符号“ SupportFragmentManager” I have MVVMCross and all dependencies (3.5.0), MVVMCross fragment support (3.5.0), and Xamarin Support Library v4 (21.0.3.0) added from NuGet with the references showing up properly in the project. 我从NuGet添加了MVVMCross和所有依赖项(3.5.0),MVVMCross片段支持(3.5.0)和Xamarin支持库v4(21.0.3.0),并在项目中正确显示了引用。

I also find the same issues with the project at https://github.com/MvvmCross/NPlus1DaysOfMvvmCross/tree/b405eef7dddf4d65b00116e142855653eae9f06b/N-26-Fraggle 我还在https://github.com/MvvmCross/NPlus1DaysOfMvvmCross/tree/b405eef7dddf4d65b00116e142855653eae9f06b/N-26-Fraggle中发现了与项目相同的问题

Any ideas why this may be happening? 任何想法为什么会发生这种情况?

Check if your target API level and minimum API level are lower than 14. If yes, probably you will need to use Support V4: 检查您的目标API级别和最低API级别是否低于14。如果是,则可能需要使用Support V4:

using FragmentManager = Android.Support.V4.App.FragmentManager; 使用FragmentManager = Android.Support.V4.App.FragmentManager;

I hope you will solve. 希望您能解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在片段中引用SupportFragmentManager - Referencing the SupportFragmentManager in a fragment 如何在 Fragment 上使用 SupportFragmentManager - How to use SupportFragmentManager on a Fragment 如何将SupportFragmentManager与MvvmCross MvxActivity一起使用 - How to use SupportFragmentManager with MvvmCross MvxActivity 如何访问片段中的getSupportFragmentManager或SupportFragmentManager - How to get access to getSupportFragmentManager or SupportFragmentManager in fragment Xamarin MvvmCross:无法解析v4.FragmentManager - Xamarin MvvmCross: Cannot Resolve v4.FragmentManager Xamarin Android:无法解析 GoogleSignIn 和 GoogleSignInClient - Xamarin Android: Cannot resolve GoogleSignIn and GoogleSignInClient 如何解决异常:无法创建“WindowsPage”的实例 - How to Resolve Exception: Cannot create an instance of “WindowsPage” Rider 无法解析与 Xamarin.iOS 框架相关的符号 - Rider cannot resolve symbols related to Xamarin.iOS framework 无法解析程序集或Windows元数据文件'Shared.dll' - Cannot resolve Assembly or Windows Metadata file 'Shared.dll' Xamarin.Forms:无法解析程序集或Windows元数据文件“类型Universe无法解析程序集:MyApp.UI.Base…” - Xamarin.Forms: Cannot resolve Assembly or Windows Metadata file 'Type universe cannot resolve assembly: MyApp.UI.Base…'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM