I\'m getting this error:
\"MyApp\\App.cs(7,7): Error CS0246: The type or namespace name \'Xamarin\' could not be found (are you missing a using di
I just had to add the Xarmin.Forms.Addin.dll in app's references. :) (Thanks @sam holder your hint in the comments led me to the answer.)
MihaMarkic's post here led me to the right answer. For each project in your solution you'll need to do the following:
This is the workflow that got it working on my Mac. I'm not sure what the exact steps are for you PC users out there.
I had it today in the VS MAC.
Deleting the ".vs" hidden folder fixed it for me.
Do the following
3.Go to control panel select programs and features and right click xamarin choose repair. 4. Start xamarin studio again.
I have to combine some previous answers:
This happened when I removed the Xamarin.Android.Support.v4
and Xamarin.Forms
library in order to downgrade to an earlier version. I got it working again by resetting the Droid packages.config
to:
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Xamarin.Android.Support.v4" version="22.1.1" targetFramework="MonoAndroid44" />
<package id="Xamarin.Forms" version="1.4.2.6355" targetFramework="MonoAndroid44" />
</packages>
Then right-click the Droid Packages
folder to Restore missing packages.
The final step is to add the References
> From Packages
to the *.Droid.csproj
<Reference Include="Xamarin.Android.Support.v4">
<HintPath>..\packages\Xamarin.Android.Support.v4.22.1.1\lib\MonoAndroid403\Xamarin.Android.Support.v4.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Platform.Android">
<HintPath>..\packages\Xamarin.Forms.1.4.2.6355\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll</HintPath>
</Reference>
<Reference Include="FormsViewGroup">
<HintPath>..\packages\Xamarin.Forms.1.4.2.6355\lib\MonoAndroid10\FormsViewGroup.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Core">
<HintPath>..\packages\Xamarin.Forms.1.4.2.6355\lib\MonoAndroid10\Xamarin.Forms.Core.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Xaml">
<HintPath>..\packages\Xamarin.Forms.1.4.2.6355\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Platform">
<HintPath>..\packages\Xamarin.Forms.1.4.2.6355\lib\MonoAndroid10\Xamarin.Forms.Platform.dll</HintPath>
</Reference>