Bug 26901 - unable to edit android layout
Summary: unable to edit android layout
Status: REOPENED
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: 5.1
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jérémie Laval
URL:
Depends on:
Blocks:
 
Reported: 2015-02-10 06:06 UTC by Vivek
Modified: 2015-02-26 08:03 UTC (History)
3 users (show)

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


Attachments
Error While opening Layout (11.62 KB, image/png)
2015-02-10 07:27 UTC, Vivek
Details
Version Of XS (68.83 KB, image/png)
2015-02-10 07:28 UTC, Vivek
Details


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 for Bug 26901 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
REOPENED

Description Vivek 2015-02-10 06:06:53 UTC
Following error message comes up on opening android layout :

    "Object reference not set to instance of object."
Comment 1 Naqeeb 2015-02-10 07:14:23 UTC
Hi Vivek,

I have tried to reproduce this issue but not able to reproduce it, I am successfully able to open Android Layout in XS without any error. 

Could you please provide us a sample project, steps, Ide log, Environment info? So that we can reproduce this issue at our end.

You can get Ide log via Help >Open Log Directory->Ide logs and Environment info via Help >About >Show Details >Copy information

Thanks

Environment info:
=== Xamarin Studio ===

Version 5.7.1 (build 17)
Installation UUID: a984b906-a6b3-414c-81f5-68fb983ac835
Runtime:
	Microsoft .NET 4.0.30319.18449
	GTK+ 2.24.22 (MS-Windows theme)
	GTK# 2.12.26

=== Xamarin.Android ===

Version: 4.20.0 (Trial Edition)
Android SDK: D:\MonoForAndroid\AndroidSDK
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: C:\Program Files (x86)\Java\jdk1.7.0_60
java version "1.7.0_60-ea"
Java(TM) SE Runtime Environment (build 1.7.0_60-ea-b15)
Java HotSpot(TM) Client VM (build 24.60-b09, mixed mode, sharing)

=== Build Information ===

Release ID: 507010017
Git revision: 0bc7d3550b6b088ac25b08dcf7bbe73bcc8658b3
Build date: 2015-02-03 19:51:07-05
Xamarin addins: f7b7d34419c9ec24501bfa7c658e80a6305613e0

=== Operating System ===

Windows 6.2.9200.0 (64-bit)
Comment 2 Vivek 2015-02-10 07:27:05 UTC
Created attachment 9744 [details]
Error While opening Layout
Comment 3 Vivek 2015-02-10 07:28:34 UTC
Created attachment 9745 [details]
Version Of XS
Comment 4 Vivek 2015-02-10 07:32:03 UTC
Although I am able to compile and run my app so there is no point of putting the log file.


Just I upgraded my XS, after that this issue arose.

Even if I create a new app, issue is same not able to create a new layout.




Thanks
Comment 5 Vivek 2015-02-10 07:35:14 UTC
=== Xamarin Studio ===

Version 5.7 (build 661)
Installation UUID: 79d5b99c-939c-4465-adfb-a0e3d31a132c
Runtime:
	Microsoft .NET 4.0.30319.18063
	GTK+ 2.24.22 (MS-Windows theme)
	GTK# 2.12.26

=== Xamarin.Android ===

Version: 4.20.0 (Enterprise Edition)
Android SDK: C:\Users\456014\AppData\Local\Android\android-sdk
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: C:\Program Files\Java\jdk1.6.0_45
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) Client VM (build 20.45-b01, mixed mode, sharing)

=== Build Information ===

Release ID: 507000661
Git revision: b70bab61da996da29045ea8ee8aed1a6faedbe78
Build date: 2015-01-05 11:27:37-05
Xamarin addins: 82f6c71490562d6cd125a09287f441902fdac3d7

=== Operating System ===

Windows 6.1.7601.65536
Comment 6 Vivek 2015-02-10 08:12:04 UTC
=== Xamarin Studio ===

Version 5.7 (build 661)
Installation UUID: 79d5b99c-939c-4465-adfb-a0e3d31a132c
Runtime:
	Microsoft .NET 4.0.30319.18063
	GTK+ 2.24.22 (MS-Windows theme)
	GTK# 2.12.26

=== Xamarin.Android ===

Version: 4.20.0 (Enterprise Edition)
Android SDK: C:\Users\456014\AppData\Local\Android\android-sdk
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: C:\Program Files\Java\jdk1.6.0_45
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) Client VM (build 20.45-b01, mixed mode, sharing)

=== Build Information ===

Release ID: 507000661
Git revision: b70bab61da996da29045ea8ee8aed1a6faedbe78
Build date: 2015-01-05 11:27:37-05
Xamarin addins: 82f6c71490562d6cd125a09287f441902fdac3d7

=== Operating System ===

Windows 6.1.7601.65536
Comment 7 Vivek 2015-02-11 07:07:42 UTC
Please help me regarding this issue ASAP.
Comment 8 Sebastián Aguado 2015-02-19 10:05:35 UTC
I get the same error with the following setup:

Xamarin Studio
Version 5.7.1 (build 17)
Installation UUID: 78b93392-5561-44d4-a26e-53d932f85b99
Runtime:
	Microsoft .NET 4.0.30319.18444
	GTK+ 2.24.22 (MS-Windows theme)
	GTK# 2.12.26

Xamarin.Android
Version: 4.20.0 (Business Edition)
Android SDK: C:\Users\sebe\AppData\Local\Android\android-sdk
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0.3 (API level 15)
		4.4   (API level 19)
Java SDK: C:\Program Files\Java\jdk1.6.0_24
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

Build Information
Release ID: 507010017
Git revision: 0bc7d3550b6b088ac25b08dcf7bbe73bcc8658b3
Build date: 2015-02-03 19:51:07-05
Xamarin addins: f7b7d34419c9ec24501bfa7c658e80a6305613e0

Operating System
Windows 6.1.7601.65536 (64-bit)

And in the IDE log I can see the following error:

ERROR [2015-02-19 15:54:36Z]: The file '{my_file.axml}' could not be opened. Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Xamarin.AndroidDesigner.AndroidDesignerSession.set_AndroidTarget(AndroidTarget value)
   at MonoDevelop.MonoDroid.Gui.AndroidDesignerView.Load(String fileName)
   at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke(String fileName)
ERROR [2015-02-19 15:54:37Z]: Could not update jumplists
System.InvalidOperationException: The file type is not registered with this application.
   at Microsoft.WindowsAPICodePack.Taskbar.JumpList.AppendCustomCategories()
   at Microsoft.WindowsAPICodePack.Taskbar.JumpList.Refresh()
   at MonoDevelop.Platform.JumpList.UpdateJumpList()
   at MonoDevelop.Platform.JumpList.OnUpdateTimerEllapsed(Object sender, EventArgs args)
Comment 9 Vivek 2015-02-26 08:03:37 UTC
Just Repair or Re-install your Xamarin studio. 

There is no other way. I guess.