运行MonoDevelop App时出现问题

时间:2011-07-17 19:56:20

标签: c# android windows-7 monodevelop xamarin.android

这是我Problem in creating a MonoDevelop App问题的延续,

问题解决了,我能够创建一个App,但现在我遇到了运行它的问题,

当我运行应用程序时,我收到错误消息

  

C:\用户\塔伦\文件\项目\ myAndroidApp \ myAndroidApp \ aresgen:

     

错误1:找不到SDK平台目录'C:\ Program Files   (86)\的Android \ Android的SDK \平台\机器人-4' 。

     

确保你拥有   在Android SDK中安装了对此Android平台版本的支持   经理。 (1)(myAndroidApp)

还有以下问题,

当我点击tools > options > other > Mono For Android SDKs时,我收到以下错误,

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.

   at MonoDevelop.MonoDroid.Gui.MonoDroidSdkSettingsWidget.Build()

   at MonoDevelop.MonoDroid.Gui.MonoDroidSdkSettingsWidget..ctor()

   at MonoDevelop.MonoDroid.Gui.MonoDroidSdkSettings.CreatePanelWidget()

   at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.CreatePageWidget(SectionPage page)

   at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.ShowPage(OptionsDialogSection section)

   at MonoDevelop.Ide.Gui.Dialogs.OptionsDialog.OnSelectionChanged(Object s, EventArgs a)

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

   at System.Delegate.DynamicInvokeImpl(Object[] args)

   at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args)

   at GLib.SignalClosure.Invoke(ClosureInvokedArgs args)

   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)

另外,当我right-click project > options > Build > Mono For android build/Mono for android applications

时,我得到同样的错误(上面提到的错误)

我的MonoDevelop版本是2.6(2.5.90)

帮助表示赞赏!

1 个答案:

答案 0 :(得分:0)

信不信由你,我读到了SDK的一个问题,它无法解析路径中的空格。尝试将Android SDK重新安装到没有空格的路径。就我而言,我将其安装到C:\Android\android-sdk