Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

[Android] "The 'LinkAssemblies' task failed unexpectedly"

$
0
0

I'm getting this error in my Forms app. My app targets Android 14. I did not create it from the Xamarin.Forms project template, but rather re-purposed the original app while trying to upgrade to Xamarin.Forms

"C:\Users\Chase\Projects\TimeTracker\FutureState.TimeTracker.Droid\FutureState.TimeTracker.Droid.csproj" (PackageForAndroid target) (1) ->
(_LinkAssemblies target) ->
  C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(966,5): error MSB4018: The "LinkAssemblies" task failed unexpectedly.\r [C:\Users\Chase\Projects\T imeTracker\FutureState.TimeTracker.Droid\FutureState.TimeTracker.Droid.csproj]
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(966,5): error MSB4018: Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata
item 'Android.Text.InputTypes Android.Widget.SearchView::get_InputType()' (defined in 'Xamarin.Forms.Platform.Android, Version=1.2.2.0, Culture=neutral, PublicKeyToken=null') fro m 'Xamarin.Forms.Platform.Android, Version=1.2.2.0, Culture=neutral, PublicKeyToken=null' could not be resolved.\r [C:\Users\Chase\Projects\TimeTracker\FutureState.TimeTracker.Dr oid\FutureState.TimeTracker.Droid.csproj]
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(966,5): error MSB4018:    at Xamarin.Android.Diagnostic.Error(Int32 code, String message, Object[] a rgs)\r [C:\Users\Chase\Projects\TimeTracker\FutureState.TimeTracker.Droid\FutureState.TimeTracker.Droid.csproj]
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(966,5): error MSB4018:    at Xamarin.Android.Tasks.LinkAssemblies.Execute()\r [C:\Users\Chase\Projec ts\TimeTracker\FutureState.TimeTracker.Droid\FutureState.TimeTracker.Droid.csproj]
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(966,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITask ExecutionHost.Execute()\r [C:\Users\Chase\Projects\TimeTracker\FutureState.TimeTracker.Droid\FutureState.TimeTracker.Droid.csproj]
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(966,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.Move Next() [C:\Users\Chase\Projects\TimeTracker\FutureState.TimeTracker.Droid\FutureState.TimeTracker.Droid.csproj]

How might I fix this?


Viewing all articles
Browse latest Browse all 58056

Trending Articles