A working Layout-Designer / Sourcecode View
VS is Freezing and unusable
VS 2017 15.7.3
Xamarin 4.10.10.1
Xamarin.Designer 4.12.1
Xamarin.Android SDK 8.3.3.2
[2018-06-01 14:00:12.9] ERROR: : Couldn't retrieve open document content
System.ArgumentException: bufferAdapter is not a VsTextDocData
bei Microsoft.VisualStudio.Editor.Implementation.VsEditorAdaptersFactoryService.GetAdapter(IVsTextBuffer bufferAdapter)
bei Microsoft.VisualStudio.Editor.Implementation.VsEditorAdaptersFactoryService.GetDocumentBuffer(IVsTextBuffer bufferAdapter)
bei Xamarin.VisualStudio.Android.Designer.VisualStudioProjectFile.RetrieveDocument() in E:A_work1sXamarin.Designer.VisualStudiosrcVisualStudio.Android.DesignerVisualStudioFileProvider.cs:Zeile 174.
I don't understand how VS on Release channel can be crippled and bugged more and more on every Update (I had to update to 15.7.3 because of the great issue #1651 )?! A Coworker of mine has the same Bug btw. so it's not related specially to my setup.
@ Microsoft: Please get a proper QA-Team checking at least major features of VS before pushing out an update. The Xamarin.Android Layout Designer is a major function used by a lot of people in any edition of VS
VS bug #625851
Looked into that yesterday concerning laggy XAML designer in VS in general. Found lots of reports on the Microsoft developer community dating back to early 2017.
Can definitely confirm that problem.
Just loaded VS Preview. And copied it's Common7\IDE\Extensions\Xamarin Designer folders over to my normal non-preview install. The lag is gone. Take that back. But the lag took alot longer till it appeared.
But on a pure VS Preview install the problem doesn't appear. Sadly I cannot do that at home because Xamarin is missing Clive.IDevEnv although that's there and it's working fine in non-preview.
Here is my log:
AndroidDesigner-2018-06-02__19-57-56.3092.log
The hang doesn't seem to cause any log spam.
I'd be happy if it would be just lagging, but it's not working anymore at all...
I have the exact same issue. And I just did an update. Now my project is stock. Its like microsoft wants every one to be using xamarin.forms. I dont want to for this project. This bugs are annoying. Any one able to resolve this. 4days behind on a project already.
I now downgraded to 15.6.7 to get everything working again. By the way, the issue exists on VS 2017 Preview as well with newest Xamarin.Android .vsix Build from Jenkins
Sorry for the inconvenience everyone,
I cannot reproduce the issue on my end with a new project, the exception mentioned in the original report is not a problem and wouldn't cause any hang.
If you are affected by the issue could you attach your last 7 days zipped log bundle (Help > Xamarin > Zip logs (last 7 days)...) so that we can investigate.
To confirm, did the issue appear after upgrading to 15.7.3 from another 15.7 release?
Hey,
I attached the Logs for you. But don't forget that I downgraded to 15.6.7 yesterday, so now everything is working again and those Logs are inside as well. The error appeared on 01.06.18 after upgrading from 15.7.2 to 15.7.3.
I noticed the same symptoms after upgrading from 15.7.2 on June 3, 2018. I tried the Preview 15.8.2 and I had the same issues. I ended up downgrading to 15.6.7 as well. I'll upload my Xamarin-Logs when I get home tonight.
i upgraded from 15.6.(x). Errors are on AndroidDesigner-2018-06-04__15-01-41.16336
xamerrors.zip
its in english
Concerning the AXML-Designer my VS is broken as well since version 15.7.3
Pls fix this ASAP THX
Yeah, I require a solution ASAP as well, please get this done with High Priority, it's an essential Part of VS
Here's my error logs from version 15.7.3 with the same issue:
On my Home PC I have the problem on 15.7.3 and on 15.8 Preview 2. But on my Work PC I run 15.8 Preview 2 without any problems.
AMD CPU at home and Intel at work. That's the only difference I can make out.
I don't think the CPU caused the problem,my PC base on Intel Core,and I have the same problem both on v15.7.3 and v15.8 preview,here is my xamarin logs:
xamarin_logs.zip
I have the same problem here with VS 15.7.3 and OOTB Android projects
I have the same issue here with a new installation of VS 15.7.3 and a simple new test project.
Same issue when I create a .axml file in VS 15.7.3.
@garuma Is there any progress on this yet?
I had to follow these steps to downgrade to 15.6.7 which is stable on the designer; https://docs.microsoft.com/en-us/visualstudio/productinfo/installing-an-earlier-release-of-vs2017
I changed the axml default editor to "XML (Text) Editor", and it doesn't freeze now.
http://blog.spinthemoose.com/2013/03/24/disable-the-xaml-designer-in-visual-studio/
Not using the Designer is not a fix for the designer freezing though.
Btw you can also just Right-click->Open with... on the file. Which is what I've been doing as workaround.
As the freeze is causing a high CPU-Load. I took the time to profile VS with a second VS instance. I clicked onto a axml on 10seconds. And it opened at about 35 and then hangs on "loading layout" and at 1:08 I switched tabs and VS was very laggy. At 1:30 it got finished loading the layout and is displaying it and now constantly loads down the CPU at 100% load on a single core and VS is veeery laggy.
Here is the full diag session: https://s.sqf.ovh/Bericht20180605-1410.diagsession
Heaviest functions:

Here are the heaviest functions in the full 1-core CPU load time while rendering the layout:

Here is the hotpath:

Looks like the issue is the TransformedBitmap constructor. Doesn't have to mean it's slow though. Could be that it is called too often.
There is a vslog.dll at the end. Does anyone know what that is? Is that maybe writing a logfile somewhere that is getting spammed with errors? I don't know where to look for that file and I don't have anymore time to waste on that with ProcessMonitor or ProcessExplorer to try to find the logfile.
My layout:
Resources.zip
Also this is how viewing the axml source looks like when using the designer instead of non-designer XML editor.

Same layout file in VS Preview on my Work PC which doesn't have the lags:
The designer finishes loading at about 13seconds.
You can see at 18seconds the CPU load just goes to 0. Whereas on the bugged install on my Home PC it stays at maximum.
This is the rendering "hot"path on my work pc:

And here my work PC's diagsession:
https://s.sqf.ovh/Bericht20180605-1424.diagsession
Okey. I said I don't have time to run ProcessMonitor.. I want this crap to get fixed soo..
https://s.sqf.ovh/Logfile.7z here is the ProcessMonitor log of file accesses together with my Xamarin logs. Starting at opening the designer on my layout.
Can't see anything suspicious in the logs.
If the VS profiling is insufficient I could also offer vTune. But I don't know if vTune can handle .Net binaries properly.
Thanks @dedmen and every one else for reporting.
I'm still not able to reproduce this on my end even with other people giving me access to their machine. I'm waiting for extra diagnostics/telemetry data from one of our service (which conveniently is currently experiencing issues) to see if I can detect something there.
What makes this problem especially puzzling on our end is that we haven't changed anything on our side between 15.7.3 and 15.7.2, so we are left combing through the rest of the platform to see what may have happened. I'll go double check if anything changed in WPF.
I have the same issue, VS Community 2017 Android AXML Designer does not load documents and freezes Visual Studio, right after applying 15.7.3 update.
We might have identified the change elsewhere that caused this. We are generating updated builds right now which I will share here (after we validate them on our end) and if all goes well we'll try to put out a service release swiftly as well.
Thanks everyone for your patience.
Here is a workaround: If you need to open a .axml file in VS 15.7.3, you could change its extension name to .xml then open it.
Just a temporary solution, waiting for Xamarin Team to fix it. :)
@aixiaozi It's easier to right-click then and use "open with" ;)
@daniels7 , thx for your suggestion, another workaround :)
Our initial testing of the new build is positive, we are going to do a smoke test pass tonight and if that goes well too I will put it here in the morning.
Build is available at https://dl.xamarin.com/uploads/tk44zhobdbd/Xamarin.VisualStudio.Alpha.4.10.10.1749615-d7e587e.vsix
This build will only work for Visual Studio 15.7.3 (aka the current stable). It would be great if anyone experiencing the issue currently can confirm this does indeed fix it. In parallel we have started the service release process as well.
For people on the current preview I will spin up a separate build today and we will have the fix in preview 3.
If you haven't used alpha packs before, to install double-click on the downloaded VSIX file then in the dialog that pops up select your stable Visual Studio instance and confirm:

If everything goes well, you should be seeing the following in the "Tools > Extension and Updates" dialog in Visual Studio:

NB The VSIX installer seems to take a bit of time to install towards the middle of the progress bar but don't worry it does work behind the scenes.
The .vsix took ages to install (after I upgraded to 15.7.3 again), but now the axml-Designer is working again, thank you! Do I need to manually remove the .vsix again before doing the next regular Update of VS 2017?
Thank you very much!
Confirmed on 15.7.3. Wouldn't say that the installation to exceptionally long.
May we learn what exactly caused the issue?
The lag/freeze is gone. But my designer window is now empty.

It worked and rendered stuff yesterday after the long freeze and despite the laggyness. So I don't think that I'm missing any dependencies.
When I switch to source view I get a exception
System.NullReferenceException Xamarin.AndroidDesigner.DesignerProjectExtensions.GetProperty[T](DesignerProject project, Int32 propid) in E:\A\_work\1\s\Xamarin.Designer.VisualStudio\src\VisualStudio.Android.Designer\Extensions\DesignerProjectExtensions.cs:Zeile 17.
ActivityLog.zip
XamarinLogs.zip
The Inspector log is interesting. It also throws a nullRef exception.
Also can't check the UI designer options. Error while loading this property page
Same exception apparently
Xamarin.Inspector|Error|0|[Inspector] Error preparing project for inspection
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Xamarin.VisualStudio.Inspector.VSInspectorSession.Create(Project proj, IServiceProvider serviceProvider) in E:\A\_work\16\s\src\Features\VisualStudio.Inspector\Vsix\VSInspectorSession.cs:Zeile 54.
bei Xamarin.VisualStudio.Inspector.XamarinInspectorPackage.RefreshInspectorSession() in E:\A\_work\16\s\src\Features\VisualStudio.Inspector\Vsix\XamarinInspectorPackage.cs:Zeile 166.
it worked. Thanksssssssss @garuma
this only issue i have are messed up icons

My situation is the same as @ojorma
Thankfully, this problem was finally solved.
The AXML Designer is working again after installing the Alpha over Visual Studio Community 2017 15.7.3. Same situation with the weird icons in the toolbox.
Thanks everyone!
When this issue will be solved without "Alpha patch" ?
I am unable to work since monday!!
I have now confirmed we will be doing a 15.7.4 service release which will contain the fix. This should come early next week.
If you are working on the preview version of Visual Studio, the next one (preview 3) will also have the fix.
Again we are very sorry for the inconvenience.
I installed the patch:
15.7.3 + Patch: working
15.8.2 Preview + Patch: same frozen
Update:
15.7.3 + Patch: not working.
Build error: Unable to access jarfile C:Program Files (x86)Microsoft Visual Studio2017ProfessionalMSBuildXamarinAndroidjar2xml.jar
This folder missing the jar2xml.jar
Hi,
it has been announced that the patch doesn't work on 15.8 Preview 2, but it should be fixed with Preview 3.
For 15.7.3, multiple people (me included) have the environment working now, so yours could be a different problem. Try to repair Visual Studio, or in the worst case uninstall and reinstall the Xamarin workload (remember then to reapply the patch!).
Regards, Damiano
I installed the above extension provided by garuma.
Now i get the following exception in the designer.
Indirect rendering enabled
java.lang.NullPointerException
at com.android.layoutlib.bridge.android.BridgeXmlBlockParser.next(BridgeXmlBlockParser.java:302)
at com.android.layoutlib.bridge.impl.ResourceHelper.getInternalComplexColor(ResourceHelper.java:170)
at com.android.layoutlib.bridge.impl.ResourceHelper.getColorStateList(ResourceHelper.java:222)
at android.content.res.BridgeTypedArray.getColorStateList(BridgeTypedArray.java:315)
at android.widget.TextView.readTextAppearance(TextView.java:3348)
at android.widget.TextView.
at android.widget.TextView.
at android.widget.TextView.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:647)
at android.view.BridgeInflater.onCreateView(BridgeInflater.java:166)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:720)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:788)
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:225)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:863)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:837)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at com.android.layoutlib.bridge.bars.CustomBar.
at com.android.layoutlib.bridge.bars.StatusBar.
at com.android.layoutlib.bridge.impl.Layout.createStatusBar(Layout.java:245)
at com.android.layoutlib.bridge.impl.Layout.
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:288)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:270)
at mono.android.DesignerSession.load(DesignerSession.java:289)
at mono.android.DesignerSession.processMessage(DesignerSession.java:657)
at mono.android.MessageListener.executeMessage(MessageListener.java:88)
at mono.android.MessageListener$Runner.run(MessageListener.java:44)
at java.lang.Thread.run(Thread.java:748)
Bridge [resources.read] Failed to parse file C:Program Files (x86)Microsoft Visual Studio2017EnterpriseCommon7IDEExtensionsXamarinAndroid.Designerjavadatarescolorsecondary_text_material_dark.xml
java.lang.NullPointerException
at com.android.layoutlib.bridge.android.BridgeXmlBlockParser.next(BridgeXmlBlockParser.java:302)
at com.android.layoutlib.bridge.impl.ResourceHelper.getInternalComplexColor(ResourceHelper.java:170)
at com.android.layoutlib.bridge.impl.ResourceHelper.getColorStateList(ResourceHelper.java:222)
at android.content.res.BridgeTypedArray.getColor(BridgeTypedArray.java:300)
at android.widget.TextView.readTextAppearance(TextView.java:3345)
at android.widget.TextView.
at android.widget.TextView.
at android.widget.TextView.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:647)
at android.view.BridgeInflater.onCreateView(BridgeInflater.java:166)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:720)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:788)
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:225)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:863)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:837)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at com.android.layoutlib.bridge.bars.CustomBar.
at com.android.layoutlib.bridge.bars.StatusBar.
at com.android.layoutlib.bridge.impl.Layout.createStatusBar(Layout.java:245)
at com.android.layoutlib.bridge.impl.Layout.
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:288)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:270)
at mono.android.DesignerSession.load(DesignerSession.java:289)
at mono.android.DesignerSession.processMessage(DesignerSession.java:657)
at mono.android.MessageListener.executeMessage(MessageListener.java:88)
at mono.android.MessageListener$Runner.run(MessageListener.java:44)
at java.lang.Thread.run(Thread.java:748)
Bridge [resources.read] Failed to parse file C:Program Files (x86)Microsoft Visual Studio2017EnterpriseCommon7IDEExtensionsXamarinAndroid.Designerjavadatarescolorhighlighted_text_material.xml
java.lang.NullPointerException
at com.android.layoutlib.bridge.android.BridgeXmlBlockParser.next(BridgeXmlBlockParser.java:302)
at com.android.layoutlib.bridge.impl.ResourceHelper.getInternalComplexColor(ResourceHelper.java:170)
at com.android.layoutlib.bridge.impl.ResourceHelper.getColorStateList(ResourceHelper.java:222)
at android.content.res.BridgeTypedArray.getColorStateList(BridgeTypedArray.java:315)
at android.widget.TextView.readTextAppearance(TextView.java:3351)
at android.widget.TextView.
at android.widget.TextView.
at android.widget.TextView.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:647)
at android.view.BridgeInflater.onCreateView(BridgeInflater.java:166)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:720)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:788)
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:225)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:863)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:837)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at com.android.layoutlib.bridge.bars.CustomBar.
at com.android.layoutlib.bridge.bars.StatusBar.
at com.android.layoutlib.bridge.impl.Layout.createStatusBar(Layout.java:245)
at com.android.layoutlib.bridge.impl.Layout.
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:288)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:270)
at mono.android.DesignerSession.load(DesignerSession.java:289)
at mono.android.DesignerSession.processMessage(DesignerSession.java:657)
at mono.android.MessageListener.executeMessage(MessageListener.java:88)
at mono.android.MessageListener$Runner.run(MessageListener.java:44)
at java.lang.Thread.run(Thread.java:748)
Bridge [resources.read] Failed to parse file C:Program Files (x86)Microsoft Visual Studio2017EnterpriseCommon7IDEExtensionsXamarinAndroid.Designerjavadatarescolorhint_foreground_material_dark.xml
java.lang.NullPointerException
at com.android.layoutlib.bridge.android.BridgeXmlBlockParser.next(BridgeXmlBlockParser.java:302)
at com.android.layoutlib.bridge.impl.ResourceHelper.getInternalComplexColor(ResourceHelper.java:170)
at com.android.layoutlib.bridge.impl.ResourceHelper.getColorStateList(ResourceHelper.java:222)
at android.content.res.BridgeTypedArray.getColor(BridgeTypedArray.java:300)
at android.widget.TextView.readTextAppearance(TextView.java:3345)
at android.widget.TextView.
at android.widget.TextView.
at android.widget.TextView.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:647)
at android.view.BridgeInflater.onCreateView(BridgeInflater.java:166)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:720)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:788)
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:225)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:863)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:837)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at com.android.layoutlib.bridge.bars.CustomBar.
at com.android.layoutlib.bridge.bars.StatusBar.
at com.android.layoutlib.bridge.impl.Layout.createStatusBar(Layout.java:245)
at com.android.layoutlib.bridge.impl.Layout.
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:288)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:270)
at mono.android.DesignerSession.load(DesignerSession.java:289)
at mono.android.DesignerSession.processMessage(DesignerSession.java:657)
at mono.android.MessageListener.executeMessage(MessageListener.java:88)
at mono.android.MessageListener$Runner.run(MessageListener.java:44)
at java.lang.Thread.run(Thread.java:748)
Bridge [resources.read] Failed to parse file C:Program Files (x86)Microsoft Visual Studio2017EnterpriseCommon7IDEExtensionsXamarinAndroid.Designerjavadatarescolorhighlighted_text_material.xml
java.lang.NullPointerException
at com.android.layoutlib.bridge.android.BridgeXmlBlockParser.next(BridgeXmlBlockParser.java:302)
at com.android.layoutlib.bridge.impl.ResourceHelper.getInternalComplexColor(ResourceHelper.java:170)
at com.android.layoutlib.bridge.impl.ResourceHelper.getColorStateList(ResourceHelper.java:222)
at android.content.res.BridgeTypedArray.getColorStateList(BridgeTypedArray.java:315)
at android.widget.TextView.readTextAppearance(TextView.java:3351)
at android.widget.TextView.
at android.widget.TextView.
at android.widget.TextView.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:647)
at android.view.BridgeInflater.onCreateView(BridgeInflater.java:166)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:720)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:788)
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:225)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:863)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:837)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at com.android.layoutlib.bridge.bars.CustomBar.
at com.android.layoutlib.bridge.bars.StatusBar.
at com.android.layoutlib.bridge.impl.Layout.createStatusBar(Layout.java:245)
at com.android.layoutlib.bridge.impl.Layout.
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:288)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:270)
at mono.android.DesignerSession.load(DesignerSession.java:289)
at mono.android.DesignerSession.processMessage(DesignerSession.java:657)
at mono.android.MessageListener.executeMessage(MessageListener.java:88)
at mono.android.MessageListener$Runner.run(MessageListener.java:44)
at java.lang.Thread.run(Thread.java:748)
Bridge [resources.read] Failed to parse file C:Program Files (x86)Microsoft Visual Studio2017EnterpriseCommon7IDEExtensionsXamarinAndroid.Designerjavadatarescolorhint_foreground_material_dark.xml
java.lang.NullPointerException
at com.android.layoutlib.bridge.android.BridgeXmlBlockParser.next(BridgeXmlBlockParser.java:302)
at com.android.layoutlib.bridge.impl.ResourceHelper.getInternalComplexColor(ResourceHelper.java:170)
at com.android.layoutlib.bridge.impl.ResourceHelper.getColorStateList(ResourceHelper.java:222)
at android.content.res.BridgeTypedArray.getColorStateList(BridgeTypedArray.java:315)
at android.widget.TextView.readTextAppearance(TextView.java:3348)
at android.widget.TextView.
at android.widget.TextView.
at android.widget.TextView.
at com.android.layoutlib.bridge.MockView.
at com.android.layoutlib.bridge.MockView.
at com.android.layoutlib.bridge.MockView.
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:240)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:863)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:837)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at com.android.layoutlib.bridge.bars.CustomBar.
at com.android.layoutlib.bridge.bars.StatusBar.
at com.android.layoutlib.bridge.impl.Layout.createStatusBar(Layout.java:245)
at com.android.layoutlib.bridge.impl.Layout.
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:288)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:270)
at mono.android.DesignerSession.load(DesignerSession.java:289)
at mono.android.DesignerSession.processMessage(DesignerSession.java:657)
at mono.android.MessageListener.executeMessage(MessageListener.java:88)
at mono.android.MessageListener$Runner.run(MessageListener.java:44)
at java.lang.Thread.run(Thread.java:748)
Bridge [resources.read] Failed to parse file C:Program Files (x86)Microsoft Visual Studio2017EnterpriseCommon7IDEExtensionsXamarinAndroid.Designerjavadatarescolorsecondary_text_material_dark.xml
java.lang.NullPointerException
at com.android.layoutlib.bridge.android.BridgeXmlBlockParser.next(BridgeXmlBlockParser.java:302)
at com.android.layoutlib.bridge.impl.ResourceHelper.getInternalComplexColor(ResourceHelper.java:170)
at com.android.layoutlib.bridge.impl.ResourceHelper.getColorStateList(ResourceHelper.java:222)
at android.content.res.BridgeTypedArray.getColor(BridgeTypedArray.java:300)
at android.widget.TextView.readTextAppearance(TextView.java:3345)
at android.widget.TextView.
at android.widget.TextView.
at android.widget.TextView.
at com.android.layoutlib.bridge.MockView.
at com.android.layoutlib.bridge.MockView.
at com.android.layoutlib.bridge.MockView.
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:240)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:863)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:837)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at com.android.layoutlib.bridge.bars.CustomBar.
at com.android.layoutlib.bridge.bars.StatusBar.
at com.android.layoutlib.bridge.impl.Layout.createStatusBar(Layout.java:245)
at com.android.layoutlib.bridge.impl.Layout.
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:288)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:270)
at mono.android.DesignerSession.load(DesignerSession.java:289)
at mono.android.DesignerSession.processMessage(DesignerSession.java:657)
at mono.android.MessageListener.executeMessage(MessageListener.java:88)
at mono.android.MessageListener$Runner.run(MessageListener.java:44)
at java.lang.Thread.run(Thread.java:748)
Bridge [resources.read] Failed to parse file C:Program Files (x86)Microsoft Visual Studio2017EnterpriseCommon7IDEExtensionsXamarinAndroid.Designerjavadatarescolorhighlighted_text_material.xml
java.lang.NullPointerException
at com.android.layoutlib.bridge.android.BridgeXmlBlockParser.next(BridgeXmlBlockParser.java:302)
at com.android.layoutlib.bridge.impl.ResourceHelper.getInternalComplexColor(ResourceHelper.java:170)
at com.android.layoutlib.bridge.impl.ResourceHelper.getColorStateList(ResourceHelper.java:222)
at android.content.res.BridgeTypedArray.getColorStateList(BridgeTypedArray.java:315)
at android.widget.TextView.readTextAppearance(TextView.java:3351)
at android.widget.TextView.
at android.widget.TextView.
at android.widget.TextView.
at com.android.layoutlib.bridge.MockView.
at com.android.layoutlib.bridge.MockView.
at com.android.layoutlib.bridge.MockView.
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:240)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:863)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:837)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at com.android.layoutlib.bridge.bars.CustomBar.
at com.android.layoutlib.bridge.bars.StatusBar.
at com.android.layoutlib.bridge.impl.Layout.createStatusBar(Layout.java:245)
at com.android.layoutlib.bridge.impl.Layout.
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:288)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:270)
at mono.android.DesignerSession.load(DesignerSession.java:289)
at mono.android.DesignerSession.processMessage(DesignerSession.java:657)
at mono.android.MessageListener.executeMessage(MessageListener.java:88)
at mono.android.MessageListener$Runner.run(MessageListener.java:44)
at java.lang.Thread.run(Thread.java:748)
Bridge [resources.read] Failed to parse file C:Program Files (x86)Microsoft Visual Studio2017EnterpriseCommon7IDEExtensionsXamarinAndroid.Designerjavadatarescolorhint_foreground_material_dark.xml
java.lang.NullPointerException
at com.android.layoutlib.bridge.android.BridgeXmlBlockParser.next(BridgeXmlBlockParser.java:302)
at com.android.layoutlib.bridge.impl.ResourceHelper.getInternalComplexColor(ResourceHelper.java:170)
at com.android.layoutlib.bridge.impl.ResourceHelper.getColorStateList(ResourceHelper.java:222)
at android.content.res.BridgeTypedArray.getColor(BridgeTypedArray.java:300)
at android.widget.TextView.readTextAppearance(TextView.java:3345)
at android.widget.TextView.
at android.widget.TextView.
at android.widget.TextView.
at com.android.layoutlib.bridge.MockView.
at com.android.layoutlib.bridge.MockView.
at com.android.layoutlib.bridge.MockView.
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:240)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:863)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:837)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at com.android.layoutlib.bridge.bars.CustomBar.
at com.android.layoutlib.bridge.bars.StatusBar.
at com.android.layoutlib.bridge.impl.Layout.createStatusBar(Layout.java:245)
at com.android.layoutlib.bridge.impl.Layout.
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:288)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:270)
at mono.android.DesignerSession.load(DesignerSession.java:289)
at mono.android.DesignerSession.processMessage(DesignerSession.java:657)
at mono.android.MessageListener.executeMessage(MessageListener.java:88)
at mono.android.MessageListener$Runner.run(MessageListener.java:44)
at java.lang.Thread.run(Thread.java:748)
Bridge [resources.read] Failed to parse file C:Program Files (x86)Microsoft Visual Studio2017EnterpriseCommon7IDEExtensionsXamarinAndroid.Designerjavadatarescolorhighlighted_text_material.xml
java.lang.NullPointerException
at com.android.layoutlib.bridge.android.BridgeXmlBlockParser.next(BridgeXmlBlockParser.java:302)
at com.android.layoutlib.bridge.impl.ResourceHelper.getInternalComplexColor(ResourceHelper.java:170)
at com.android.layoutlib.bridge.impl.ResourceHelper.getColorStateList(ResourceHelper.java:222)
at android.content.res.BridgeTypedArray.getColorStateList(BridgeTypedArray.java:315)
at android.widget.TextView.readTextAppearance(TextView.java:3351)
at android.widget.TextView.
at android.widget.TextView.
at android.widget.TextView.
at com.android.layoutlib.bridge.MockView.
at com.android.layoutlib.bridge.MockView.
at com.android.layoutlib.bridge.MockView.
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:240)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:863)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:837)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at com.android.layoutlib.bridge.bars.CustomBar.
at com.android.layoutlib.bridge.bars.StatusBar.
at com.android.layoutlib.bridge.impl.Layout.createStatusBar(Layout.java:245)
at com.android.layoutlib.bridge.impl.Layout.
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:288)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:270)
at mono.android.DesignerSession.load(DesignerSession.java:289)
at mono.android.DesignerSession.processMessage(DesignerSession.java:657)
at mono.android.MessageListener.executeMessage(MessageListener.java:88)
at mono.android.MessageListener$Runner.run(MessageListener.java:44)
at java.lang.Thread.run(Thread.java:748)
Bridge [resources.read] Failed to parse file C:Program Files (x86)Microsoft Visual Studio2017EnterpriseCommon7IDEExtensionsXamarinAndroid.Designerjavadatarescolorhint_foreground_material_dark.xml
Failed to process message Load
mono.android.DesignerException: java.lang.NullPointerException
at mono.android.DesignerException.fromThrowable(DesignerException.java:46)
at mono.android.DesignerSession.checkRenderResultForError(DesignerSession.java:217)
at mono.android.DesignerSession.load(DesignerSession.java:296)
at mono.android.DesignerSession.processMessage(DesignerSession.java:657)
at mono.android.MessageListener.executeMessage(MessageListener.java:88)
at mono.android.MessageListener$Runner.run(MessageListener.java:44)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at android.widget.TextView.updateTextColors(TextView.java:4953)
at android.widget.TextView.setLinkTextColor(TextView.java:4331)
at android.widget.TextView.applyTextAppearance(TextView.java:3424)
at android.widget.TextView.
at android.widget.TextView.
at android.widget.TextView.
at com.android.layoutlib.bridge.MockView.
at com.android.layoutlib.bridge.MockView.
at com.android.layoutlib.bridge.MockView.
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:240)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:863)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:837)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at com.android.layoutlib.bridge.bars.CustomBar.
at com.android.layoutlib.bridge.bars.StatusBar.
at com.android.layoutlib.bridge.impl.Layout.createStatusBar(Layout.java:245)
at com.android.layoutlib.bridge.impl.Layout.
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:288)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:384)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:270)
at mono.android.DesignerSession.load(DesignerSession.java:289)
... 4 more
@garuma after installed the extension application takes long time to build(min: 2 mts).
@garuma after alpha patch axml designer started working as expected. Thank you for the fix.
All seems to be OK after 1.5.7.4 update :)
Sorry folks, circling back now to confirm that we have release the fix in version 15.7.4 (released on Monday) and that the impeding Preview 3 for 15.8 will also have it. Thus you can ignore the alpha pack I had provided and, if you had installed it previously, remove it from your VS installation to upgrade to 15.7.4
@Priyankakumar this is likely because Android framework data got out of sync with the alpha pack installed, you can delete your Android project obj/ folder to force this data to be recomputed.
@garuma thank u so much
Most helpful comment
We might have identified the change elsewhere that caused this. We are generating updated builds right now which I will share here (after we validate them on our end) and if all goes well we'll try to put out a service release swiftly as well.
Thanks everyone for your patience.