這是我Problem in creating a MonoDevelop App問題的延續,問題上運行的應用程序的MonoDevelop
問題是解決了,我能夠創建一個應用程序,但現在我有問題,運行它,
當我運行該應用程序我得到一個錯誤的說法,
C:\用戶\塔倫\文件\項目\ myAndroidApp \ myAndroidApp \ aresgen:
錯誤1:找不到SDK平臺目錄「C:\ PROGRAM文件 (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(90年2月5日)
幫助感謝!