0
votes

I have issue when building an Mvvmcross 3.1.1 (nuget) application. I am getting this exception during second phase build (packaging the apk) on my solution

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(970,5): error MSB4018: Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'System.Void Android.Views.View::set_Activated(System.Boolean)' (defined in 'Cirrious.MvvmCross.Binding.Droid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') from 'Cirrious.MvvmCross.Binding.Droid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' could not be resolved.\r

This seems similar to this issue #629. While my manifest is ok:

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="15" />

I am using latest nuget Mvvmcross 3.1.1.

Thanks

1

1 Answers

1
votes

That's probably due to the Linker on your Android project. Is Linking set on "Sdk and User Assemblies"? If yes: You need to compile with a higher Sdk version due to this bug. I hope the link may help you in case you want to keep the linker like that.