Bug 22762 - Cannot open layout editor, but source code works fine.
Summary: Cannot open layout editor, but source code works fine.
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2014-09-08 18:52 UTC by christians192
Modified: 2017-06-27 19:32 UTC (History)
6 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description christians192 2014-09-08 18:52:20 UTC

Comment 1 christians192 2014-09-08 19:04:13 UTC
It seems that after opening a few projects in Xamarin Studio, starter edition, the layout editor throws multiple exceptions when trying to open the layout editor. The error is listed below.

The file (I'm not going to insert my own directory to my projects so the directory to the projects go here) could not be opened. Specified argument was out of the range of valid values.
Parameter name: API level not recognized: 9


System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: API level not recognized: 9
   at Xamarin.AndroidTools.AndroidVersion.ApiLevelToOSVersion(Int32 apiLevel)
   at Xamarin.AndroidDesigner.AndroidDesignerService.FindBestTarget(String androidVersion)
   at MonoDevelop.MonoDroid.Gui.AndroidDesignerView.Load(String fileName)
   at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke(String fileName)
Comment 2 Danish Akhtar 2014-09-11 07:53:40 UTC
Today, I have tried to reproduce this issue with:
XS 5.3(build 441)
Windows 8

But unable to reproduce this issue, android designer is open successfully with starter license without any error in XS.

Could you please provide us the build info which you are using via XS->About XS->Copy information and sample project so we can try to reproduce this issue at our end.

Comment 3 christians192 2014-09-11 17:06:36 UTC
The build that I am using is 5.4 build 194
Comment 4 Gabe Martin 2014-09-23 12:35:39 UTC
To repro this issue simply install the API 9 Platform SDK. Although it's considered "obsolete" it's still often used as a minimum supported platform since it's still considered 2.3.

Comment 5 Miha Markic 2014-10-23 06:56:54 UTC
It happens to me as well, even without API 9 SDK.

I am on beta channel:
XS 5.6.2
Xamarin.Android 4.18.
Comment 6 Chris Hardy [MSFT] 2017-06-27 19:32:13 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we believe it no longer affects the current version of Xamarin.Android. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.