Xamarin - MonoDevelop _ 不可能为“Mono for Android”创建解决方案

发布于 2024-12-12 04:52:52 字数 4330 浏览 0 评论 0原文

我按照此处的链接在 Mac OSX Lion 10.7 上安装 MonoDevelop for Android 的步骤。 之前,我为 iOS 的 MonoDevelop 做过同样的事情,并且有效。 但现在使用 MonoDevelop 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

昵称有卵用 2024-12-19 04:52:52

我重新安装了 Mono for Andoid 1.2.0 试用版,现在它可以工作了。

嗨,

这里实际上有两个问题。第一个是你应该
实际上已经显示了一个附加的信息更丰富的错误对话框
到这封电子邮件。我已经解决了这个问题,所以在未来的版本中
MonoDevelop 您将不再获得难以理解的堆栈跟踪。
对此表示歉意。

其次,当您收到此错误时,这意味着 Mono for Android 已
未正确安装且无法找到。你能否证实
您安装了 Mono for Andoid 1.2.0 试用版还是完整版?到
验证它位于标准位置,您应该在以下位置找到该目录
文件系统上的 /Developer/MonoAndroid。如果它不存在,那么
安装出了问题。在那种情况下,我会
建议再次重新安装 Mono for Android 并验证是否可用
安装到该位置。

如果这可以解决您的问题,请告诉我们。如果没有,我们
可能需要获得更多信息才能准确弄清楚
出了什么问题。

谢谢艾伦

I re install Mono for Andoid 1.2.0 trial and now it works.

Hi,

There are actually two issues here. The first one is that you should
actually have been shown a much more informative error dialog attached
to this email. I've fixed this issue so in future releases of
MonoDevelop you will no longer get that unintelligible stacktrace.
Apologies for this.

Secondly, when you get this error, it means that Mono for Android has
not been installed correctly and cannot be found. Can you confirm that
you've installed Mono for Andoid 1.2.0 trial or full edition? To
verify it's in the standard location, you should find the directory at
/Developer/MonoAndroid on your filesystem. If it's not there, then
something has gone wrong with the installation. In that case, i'd
recommend reinstalling Mono for Android again and verifying if it is
installed to that location.

Do let us know if that resolves the issue for you. If it doesn't, we
might need to get some more information in order to figure out exactly
what has gone wrong.

Thanks, Alan

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文