Fail to build New Android Application Solution

JasonLeeJasonLee USMember

Hi,

I have just installed Xamarin Studio through the following steps:

  1. JDK 1.6: http://download.xamarin.com/Installer/MonoForAndroid/jdk-6u39-windows-i586.exe
  2. Android SDK: http://dl.google.com/android/installer_r22-windows.exe
  3. GTK#: http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.22.msi
  4. Xamarin Studio: http://download.xamarin.com/studio/Windows/XamarinStudio-4.0.13-38.msi
  5. Xamarin.Android for Visual Studio and Xamarin Studio: http://download.xamarin.com/MonoforAndroid/Windows/mono-android-4.8.03015.msi

I tried to create a new solution as per instruction in the "Hello World" page. The following error message popped out.

System.ArgumentNullException: Value cannot be null.
Parameter name: path1
at System.IO.Path.Combine(String path1, String path2, String path3)
at Xamarin.AndroidTools.AndroidSdk.GetPlatformDirectory(Int32 apiLevel)
at Xamarin.AndroidTools.AndroidSdk.IsPlatformInstalled(Int32 apiLevel)
at MonoDevelop.MonoDroid.MonoDroidFramework.IsPlatformInstalled(TargetRuntime runtime, TargetFramework framework)
at MonoDevelop.MonoDroid.MonoDroidFramework.<>c__DisplayClass6.b__5(TargetFramework fx)
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate)
at MonoDevelop.MonoDroid.MonoDroidFramework.GetLatestInstalledFramework(TargetRuntime runtime)
at MonoDevelop.MonoDroid.MonoDroidProject.OnModified(SolutionItemModifiedEventArgs args)
at MonoDevelop.Projects.SolutionItem.NotifyModified(String hint)
at MonoDevelop.MonoDroid.MonoDroidProject.set_AndroidUseLatestPlatformSdk(Nullable`1 value)
at MonoDevelop.MonoDroid.MonoDroidProject..ctor(String languageName, ProjectCreateInformation info, XmlElement projectOptions)
at MonoDevelop.MonoDroid.MonoDroidProjectBinding.CreateProject(ProjectCreateInformation info, XmlElement projectOptions)
at MonoDevelop.Projects.ProjectService.CreateProject(String type, ProjectCreateInformation info, XmlElement projectOptions)
at MonoDevelop.Ide.Templates.ProjectDescriptor.CreateItem(ProjectCreateInformation projectCreateInformation, String defaultLanguage)
at MonoDevelop.Ide.Templates.SolutionDescriptor.CreateEntry(ProjectCreateInformation projectCreateInformation, String defaultLanguage)
at MonoDevelop.Ide.Templates.ProjectTemplate.CreateWorkspaceItem(ProjectCreateInformation cInfo)
at MonoDevelop.Ide.Projects.NewProjectDialog.CreateProject()

Please help. Thanks.

Posts

  • MaximMaxim RUMember

    You need to set up Anroid SDK path:

    Tools -> Open Android SDK Manager

Sign In or Register to comment.