【发布时间】:2011-07-17 19:56:20
【问题描述】:
这是我Problem in creating a MonoDevelop App 问题的延续,
问题已解决,我可以创建一个应用程序,但现在运行它时遇到问题,
当我运行应用程序时,我收到一条错误消息,
C:\Users\tarun\Documents\Projects\myAndroidApp\myAndroidApp\aresgen:
错误 1:找不到 SDK 平台目录 'C:\Program Files (x86)\Android\android-sdk\platforms\android-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)
帮助赞赏!
【问题讨论】:
标签: c# android windows-7 monodevelop xamarin.android