无法加载布局设计器

时间:2016-09-23 19:17:32

标签: android-layout xamarin xamarin.android

我是Xamarin的新手;经过几个小时的安装和重新安装,试图部署一个Hello Android应用程序,我做到了!但是,当我尝试打开应用程序布局时,遇到此错误:

System.ComponentModel.Composition.ImportCardinalityMismatchException: No exports were found that match the constraint: 
    ContractName    VisualStudioWorkspace
    RequiredTypeIdentity    Microsoft.CodeAnalysis.Workspace
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportsCore(Type type, Type metadataViewType, String contractName, ImportCardinality cardinality)
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValueCore[T](String contractName, ImportCardinality cardinality)
   at Xamarin.VisualStudio.Android.MonoAndroidDesignerInterface.GetCodeModelBridge() in C:\data\lanes\3513\c4382f51\source\xamarinvs\src\Core\VisualStudio.Android\Designer\MonoAndroidDesignerInterface.cs:line 154
   at Xamarin.AndroidDesigner.DesignerProject.get_CodeModelBridge()
   at Xamarin.AndroidDesigner.DesignerProject.<UpdateDesignerResourceIds>d__175.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.DesignerProject.<EnsureLoaded>d__139.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.AndroidDesigner.AndroidRenderSession.<InitSession>d__105.MoveNext()

该怎么做?

0 个答案:

没有答案