[英]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的问题: 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.