Skip to content

Instantly share code, notes, and snippets.

@motowilliams
Last active November 9, 2017 09:43
Show Gist options
  • Save motowilliams/1c2758c690daa5bf191b452b44a840d6 to your computer and use it in GitHub Desktop.
Save motowilliams/1c2758c690daa5bf191b452b44a840d6 to your computer and use it in GitHub Desktop.
Xamarin.Android Build Failures
  • No build definition changes and the solution builds locally.
  • Build fails on master branch where changes haven't been landed for a few days.
2017-10-31T21:58:47.2398136Z ##[error]Unable to process command '##vso[telemetry.publish area=Tasks.CrossPlatform;feature=XamarinAndroid]{ "jdkVersion": default }' successfully. Please reference documentation (http://go.microsoft.com/fwlink/?LinkId=817296)
2017-10-31T21:58:47.2408444Z ##[error]Unable to parse telemetry data { "jdkVersion": default }. Error: Unexpected character encountered while parsing value: d. Path 'jdkVersion', line 1, position 16.
2017-10-31T21:58:47.2408444Z ##[debug]System.ArgumentException: Unable to parse telemetry data { "jdkVersion": default }. Error: Unexpected character encountered while parsing value: d. Path 'jdkVersion', line 1, position 16.
   at Microsoft.VisualStudio.Services.Agent.Worker.Telemetry.TelemetryCommandExtension.ProcessPublishTelemetryCommand(IExecutionContext context, Dictionary`2 eventProperties, String data)
   at Microsoft.VisualStudio.Services.Agent.Worker.WorkerCommandManager.TryProcessCommand(IExecutionContext context, String input)
2017-10-31T21:58:47.2418167Z ##[debug]Processed: ##vso[telemetry.publish area=Tasks.CrossPlatform;feature=XamarinAndroid]{ "jdkVersion": default }
@bojingo
Copy link

bojingo commented Nov 7, 2017

I started getting this too. I have 3 Xamarin apps that are all suddenly failing with this. Assuming you got past this issue, please let me know what you did to get the builds passing again. Thanks!

NOTE: This is the only Google result with the error message... so you're my only hope! :)

@wedgeley
Copy link

wedgeley commented Nov 7, 2017

I've also started getting this. Try changing the build step JDK Version from "Default" to a specific version (I selected JDK 8). This got my build working again (assuming this isn't intermittent).

@gi097
Copy link

gi097 commented Nov 7, 2017

Yes, getting it here as well.

@chrisg32
Copy link

chrisg32 commented Nov 7, 2017

This started happening to me yesterday as well. I tried updating the build tools and server, reinstalled the build agent, double checked Java class paths, and manually pointed to the JDK in the build task. None of that worked.

I followed @wedgeley and set the JDK version to JDK 8 and everything works like a charm. It appears the build task was updated but not versioned.

@wedgeley
Copy link

wedgeley commented Nov 9, 2017

This is now fixed if you want to switch back to the original configuration.
See https://github.com/Microsoft/vsts-tasks/issues/5787

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment