Hallo, I tried to implement a viewpager in my project where I had used the following library: Mono.Android.Support.v4.dll and I added the following library: Mono.Android.Support.v13.dll. But I got the following error:
Error CS0433:
The type 'Android.Support.V4.View.ViewPager' exists in both 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v4.4\Mono.Android.Support.v13.dll' and 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v4.4\Mono.Android.Support.v4.dll' (CS0433) (AndroidApollo)
So I deleted Mono.Android.Support.v4.dll. But now I get this error:
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Xamarin.Android.Support.v4.dll'
at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
at Xamarin.Android.Tasks.ResolveAssemblies.Execute() (AndroidApollo)
I don't know what to do. Can somebody help me?
↧
Error with Viewpager
↧