Xamarin - MonoDevelop _ 不可能为“Mono for Android”创建解决方案
如果有人能帮助我就好了?
多谢。
异常:
System.Reflection.TargetInitationException:调用目标已引发异常。 ---> MonoDevelop.Core.UserException:未安装 Mono for Android 在 MonoDevelop.MonoDroid.MonoDroidProject.ThrowIfNotInstalled () [0x0002d] 在 /private/tmp/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidProject.cs:58 在 MonoDevelop.MonoDroid.MonoDroidProject.Init () [0x00000] 在 /private/tmp/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidProject.cs:222 在 MonoDevelop.MonoDroid.MonoDroidProject..ctor (System.String languageName, MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x0001b] 在 /private/tmp/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop 中。 MonoDroid/MonoDroidProject.cs:183 在/private/tmp/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidProjectBinding.cs中的MonoDevelop.MonoDroid.MonoDroidProjectBinding.CreateProject(MonoDevelop.Projects.ProjectCreateInformation信息,System.Xml.XmlElement项目选项)[0x0000c]: 40 在MonoDevelop.Projects.ProjectService.CreateProject(System.String类型,MonoDevelop.Projects.ProjectCreateInformation信息,System.Xml.XmlElement项目选项)[0x00033]在/private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core /MonoDevelop.Projects/ProjectService.cs:498 在/private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide中的MonoDevelop.Ide.Templates.ProjectDescriptor.CreateItem(MonoDevelop.Projects.ProjectCreateInformation projectCreateInformation,System.String defaultLanguage)[0x00036]。模板/ProjectDescriptor.cs:111 在 MonoDevelop.Ide.Templates.ProjectTemplate.HasItemFeatures (MonoDevelop.Projects.SolutionFolder ParentFolder, MonoDevelop.Projects.ProjectCreateInformation cinfo) [0x0000e] 在 /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop 中。 Ide.Templates/ProjectTemplate.cs:302 在MonoDevelop.Ide.Projects.NewProjectDialog.SelectedIndexChange(System.Object发送者,System.EventArgs e)[0x000e3]在/private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/ NewProjectDialog.cs:474 在 MonoDevelop.Ide.Projects.NewProjectDialog+TemplateView.m__3A (System.Object , System.EventArgs ) [0x0000b] 在 /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/ NewProjectDialog.cs:678 at (包装器托管到本机) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) 在System.Reflection.MonoMethod.Invoke(System.Object obj,BindingFlags invokeAttr,System.Reflection.Binder活页夹,System.Object[]参数,System.Globalization.CultureInfo文化)[0x000d5]中/private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Reflection/MonoMethod.cs:226 --- 内部异常堆栈跟踪结束 --- 在System.Reflection.MonoMethod.Invoke(System.Object obj,BindingFlags invokeAttr,System.Reflection.Binder活页夹,System.Object[]参数,System.Globalization.CultureInfo文化)[0x000eb]中/private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Reflection/MonoMethod.cs:234 在 /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System 中的 System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] 参数) [0x00000]。反射/MethodBase.cs:96 在 /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System/Delegate.cs:408 中的 System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000bf] 在 /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System/MulticastDelegate.cs:70 中的 System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] 在 /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System/Delegate.cs:382 中的 System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] 在 GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] 中:0 在 GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] 中:0 在GLib.SignalClosure.MarshalCallback(IntPtr raw_closure,IntPtr return_val,UInt32 n_param_vals,IntPtr param_values,IntPtr incall_hint,IntPtr marshal_data)[0x00000]中:0
I followed the steps to install MonoDevelop for Android on Mac OSX Lion 10.7 thanks to this link here.
Before, I have done the same thing for MonoDevelop for IOS, and it works.
But now with MonoDevelop for Android I get an exception, I don't understand why it doesn't work.
It could be nice if someone could help me ?
Thanks a lot.
exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> MonoDevelop.Core.UserException: Mono for Android is not installed
at MonoDevelop.MonoDroid.MonoDroidProject.ThrowIfNotInstalled () [0x0002d] in /private/tmp/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidProject.cs:58
at MonoDevelop.MonoDroid.MonoDroidProject.Init () [0x00000] in /private/tmp/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidProject.cs:222
at MonoDevelop.MonoDroid.MonoDroidProject..ctor (System.String languageName, MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x0001b] in /private/tmp/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidProject.cs:183
at MonoDevelop.MonoDroid.MonoDroidProjectBinding.CreateProject (MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x0000c] in /private/tmp/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidProjectBinding.cs:40
at MonoDevelop.Projects.ProjectService.CreateProject (System.String type, MonoDevelop.Projects.ProjectCreateInformation info, System.Xml.XmlElement projectOptions) [0x00033] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectService.cs:498
at MonoDevelop.Ide.Templates.ProjectDescriptor.CreateItem (MonoDevelop.Projects.ProjectCreateInformation projectCreateInformation, System.String defaultLanguage) [0x00036] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectDescriptor.cs:111
at MonoDevelop.Ide.Templates.ProjectTemplate.HasItemFeatures (MonoDevelop.Projects.SolutionFolder parentFolder, MonoDevelop.Projects.ProjectCreateInformation cinfo) [0x0000e] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectTemplate.cs:302
at MonoDevelop.Ide.Projects.NewProjectDialog.SelectedIndexChange (System.Object sender, System.EventArgs e) [0x000e3] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs:474
at MonoDevelop.Ide.Projects.NewProjectDialog+TemplateView.m__3A (System.Object , System.EventArgs ) [0x0000b] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs:678
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d5] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Reflection/MonoMethod.cs:226
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Reflection/MonoMethod.cs:234
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Reflection/MethodBase.cs:96
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000bf] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System/Delegate.cs:408
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System/MulticastDelegate.cs:70
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System/Delegate.cs:382
at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in :0
at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in :0
at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in :0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我重新安装了 Mono for Andoid 1.2.0 试用版,现在它可以工作了。
I re install Mono for Andoid 1.2.0 trial and now it works.