Search code examples
androidxamarinvisual-studio-2017visual-studio-macxamarin.droid

why visual studio archiving always fails


I have xamarin Native project and when I try to archive build in visual studio 2017 it fails with below error but when I try to do the same with xamarin studio I'm not facing any of this issues and I can archive succesfully

Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2,2): 
Error: Could not load assembly 'MyApp, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile? (MyApp.Droid) 

How to fix the issue and ideas what's going wrong

Update:

This is a xamarin native project


Solution

  • its seems you have corrupted assembly this will fix by reinstalling the corrupted SDK and install the updated android tools