I am creating Xamarin bindings on a AAR file in Visual Studio. I have created the bindings in Visual Studio using auto-generated code in an Android Bindings Library (Xamarin) project template. The bindings project compiles without errors and the only warnings in the build output relate to this specific issue: "The member '...' does not hide an accessible member. The new keyword is not required."
The problem is when I try to reference the bindings project. I created a blank Xamarin Android app project, called AndroidTest, which and ran fine. I then added a reference to the binding project to Android test. I added no code in AndroidTest that references the binding. When I build the AndroidTest project, I get the following error:
Error The "LinkAssemblies" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'AndroidTest, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'AndroidTest.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.GetAssembly(String fileName)
at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
at Xamarin.Android.Tasks.LinkAssemblies.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() AndroidTest
The bindings project has no reference to AndroidTest, and there are no other projects in the solution. How do I resolve this error?