2
votes

I chose Build -> Archive for publishing

and I am getting the following error

/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)

It was working earlier but now not anymore

3
Are you able to build normally? If it fails, can you provide a full diagnostic build output? - Jon Douglas
I have this problem too, I can build both debug and release but on Archive for publishing it fails. I am also using Visual Studio for Mac - AndreasReiff
Let me know if you found the solution - Rajan M
Have you updated the Xamarin.Forms package? - AndreasReiff

3 Answers

2
votes

I had the exact same scenario, the project used to archive but doesn't any longer, same OS, debug is also perfectly fine.

enter image description here

I found that I only had armeabi-v7a ticked, after ticking x86 it seemed to work.

1
votes

Step1:

Change Linker Mode

enter image description here

Step2:

Delete obj & bin files in all platforms

Step3:

Rebuild your solution in Debug mode.

Step4:

Now put release mode then try maybe it will work for you

0
votes

You have to use the Release|AnyCPU when building the project instead of Release|ARM. That worked for me.