Question

I have been using monodroid in debug mode, but now my app is finished testing and I would like to release it to a device and then to google play store, I get the following error

`Error  1   Could not load file or assembly 'Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=c4c4237547e4b6cd' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)   C:\...\SGEN com.Project`

I found this while googling the error Xamarin Bug but I don't really understand how to make it so my app can work. Can someone please help me?

Edit: Apparently the Error is cause by using web references, the reported bug suggests to move the web references to a separate library that don't refer itself to mono references, any idea of how can I accomplish this?

Was it helpful?

Solution

I was able to solve this problem doing the following:

  • Added a new project to my solution
  • Added my web reference to this new project
  • Deleted my web reference from my original project
  • Added a reference to the new project on the original project
  • Used new project web reference namespace to refer to my web reference

On this way, putting the web reference in a project that doesn't reference Mono.Android itself the application was able to release with no problems

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top