2011-07-17 9 views
0

Ceci est la suite de ma Problem in creating a MonoDevelop App question,Problème d'exécution d'une application MonoDevelop

Le problème est résolu, je suis en mesure de créer une application, mais maintenant je vais avoir des problèmes de l'exécuter,

Quand je exécuter l'application que je reçois une erreur disant

C: \ Users \ Tarun \ Documents \ Projets \ myAndroidApp \ myAndroidApp \ aresgen:

erreur 1: Impossible de trouver le SDK répertoire de plate-forme « C: \ Program Fichiers (x86) \ Android \ plates-formes \ android-sdk \ android-4' .

Assurez-vous que le support est installé pour cette version de la plateforme Android dans le Gestionnaire Android SDK . (1) (myAndroidApp)

ont également le problème suivant,

quand je frappe tools > options > other > Mono For Android SDKs, je reçois l'erreur suivante,

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) 

Aussi, je reçois cette même erreur (celle mentionné ci-dessus), quand je right-click project > options > Build > Mono For android build/Mono for android applications

Ma version MonoDevelop est 2,6 (2.5.90) ​​

Aide appréciée!

Répondre

0

Croyez-le ou non, je l'ai lu au sujet d'un problème avec le SDK où il ne peut pas analyser les espaces dans le chemin. Essayez de réinstaller le SDK Android sur un chemin sans espaces. Dans mon cas, je l'ai installé à C:\Android\android-sdk.