简体   繁体   中英

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: 无法解析符号“ 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.

I also find the same issues with the project at 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:

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

I hope you will solve.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM