conceptdev / xamarin-forms-samples

Samples that use Xamarin.Forms (http://xamarin.com/forms)
MIT License
472 stars 659 forks source link

[vernacular] Error building TodoL10nVernacular #2

Closed bootstraponline closed 9 years ago

bootstraponline commented 10 years ago

I'm not sure how to fix this. The android version of TodoL10nVernacular doesn't build.

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: Error executing task LinkAssemblies: error XA2006: Reference to metadata item 'Android.Text.InputTypes Android.Widget.SearchView::get_InputType()' (defined in 'Xamarin.Forms.Platform.Android, Version=1.2.1.0, Culture=neutral, PublicKeyToken=null') from 'Xamarin.Forms.Platform.Android, Version=1.2.1.0, Culture=neutral, PublicKeyToken=null' could not be resolved. (TodoXaml.Android)

bootstraponline commented 10 years ago

Seems like a Xamarin bug related to the target Android version.

https://forums.xamarin.com/discussion/17929/error-executing-task-linkassemblies-for-android-release-build

Updating the target API fixed the issue.

bootstraponline commented 10 years ago

How did you build Vernacular.Catalog.XamarinForms.Android? Vernacular doesn't support building for Android.

conceptdev commented 9 years ago

Apologies that I did not see this issue until now - for some reason notifications weren't working, and I never looked :-(

I did a custom build of Vernacular for Android, which is why I shipped the custom assemblies. I haven't got the changes handy right now, but you could reflect on them to see if anything obvious is different. I think I just moved some code out into the Vernacular.Catalog.XamarinForms.Android assembly since it wasn't possible to make it 100% cross-platform...