Rajan M
Rajan M

Reputation: 345

Xamarin.Droid Package creation failed

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

Upvotes: 2

Views: 800

Answers (3)

RobVoisey
RobVoisey

Reputation: 1083

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.

Upvotes: 2

Venkata Swamy Balaraju
Venkata Swamy Balaraju

Reputation: 1481

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

Upvotes: 1

AndreasReiff
AndreasReiff

Reputation: 174

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

Upvotes: 0

Related Questions