Xamarin.Droid Package creation failed

805 views Asked by At

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

There are 3 answers

0
RobVoisey On BEST ANSWER

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
AndreasReiff On

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

0
Venkata Swamy Balaraju On

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